#pragma interface #ifndef CONTEXT_H #define CONTEXT_H class CONFDB; class LINUXCONF_CONTEXT { public: char basepath[200]; CONFDB *tb; long linuxconf_date; char title_prefix[100]; // Small prefix put in front // of all linuxconf title to // differentiate the various // dialog (when using administration trees) int treejump_level; // Jumping to a specific dialog at a // specific level of sub-menu int treemenu_level; class PRIVILEGE *defpriv; // Default privilege for current operation /*~PROTOBEG~ LINUXCONF_CONTEXT */ public: LINUXCONF_CONTEXT (const char *_path); LINUXCONF_CONTEXT (void); private: void init (void); public: void set (LINUXCONF_CONTEXT&cur); void settitle (const char *title); /*~PROTOEND~ LINUXCONF_CONTEXT */ }; extern LINUXCONF_CONTEXT ui_context; #endif