1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/opener_context.h Sun Jan 24 19:29:07 2021 +0100
1.3 @@ -0,0 +1,29 @@
1.4 +#pragma once
1.5 +
1.6 +#include "file_pager.h"
1.7 +#include "simple_pager.h"
1.8 +
1.9 +
1.10 +
1.11 +/* Forward declaration. */
1.12 +
1.13 +class Opener;
1.14 +
1.15 +
1.16 +
1.17 +/* Support for indicating files to be opened. */
1.18 +
1.19 +class OpenerContext : public SimplePager
1.20 +{
1.21 +protected:
1.22 + Opener *_opener;
1.23 +
1.24 +public:
1.25 + explicit OpenerContext(Opener *opener, Memory *memory=NULL);
1.26 +
1.27 + FilePager *open();
1.28 +
1.29 + char *get_path();
1.30 +};
1.31 +
1.32 +// vim: tabstop=4 expandtab shiftwidth=4