2021-01-24 | Paul Boddie | raw annotate files changeset graph | Introduced usage of an opener to obtain a file pager. |
1 #pragma once 2 3 #include "file_pager.h" 4 #include "simple_pager.h" 5 6 7 8 /* Forward declaration. */ 9 10 class Opener; 11 12 13 14 /* Support for indicating files to be opened. */ 15 16 class OpenerContext : public SimplePager 17 { 18 protected: 19 Opener *_opener; 20 21 public: 22 explicit OpenerContext(Opener *opener, Memory *memory=NULL); 23 24 FilePager *open(); 25 26 char *get_path(); 27 }; 28 29 // vim: tabstop=4 expandtab shiftwidth=4