Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

profiles.h

Go to the documentation of this file.
00001 #ifndef profiles_h
00002 #define profiles_h
00003 
00004 #include <userconf.h>
00005 
00006 class CONFDB;
00007 class USERS;
00008 
00009 class PROFILE: public ARRAY_OBJ{
00010 public:
00011     SSTRING id;
00012     CONFDB *data;
00013     CONFIG_FILE *file;
00014     /*~PROTOBEG~ PROFILE */
00015 public:
00016     PROFILE (void);
00017     void init (void);
00018     void reset (void);
00019     int setfile (const char *path);
00020     ~PROFILE (void);
00021     /*~PROTOEND~ PROFILE */
00022 };
00023 
00024 class PROFILES: public ARRAY {
00025 public:
00026     SSTRING path;
00027     SSTRING id;
00028     PROFILE profile;
00029 
00030     /*~PROTOBEG~ PROFILES */
00031 public:
00032     PROFILES (const char *path);
00033     PROFILES (const char *path, const char *id);
00034     PROFILES (void);
00035     int add (CONFDB *db);
00036     int add (const char *id);
00037     int del (void);
00038     int dia_admin (void);
00039     int dia_list (DIALOG&dia, SSTRINGS&tb);
00040     int dia_select (void);
00041     CONFDB *get (const char *id);
00042     int get_list (SSTRINGS&lst);
00043     void reset (void);
00044     int setpath (const char *id);
00045     void setup_priv (PRIVILEGES&priv_tb,
00046          const char *section);
00047     int use (const char *id);
00048     ~PROFILES (void);
00049     /*~PROTOEND~ PROFILES */
00050 };
00051 #endif
00052 
00053 
00054 
00055 
00056 
00057 

Generated at Mon Jan 22 08:35:12 2001 for ldapconf by doxygen1.2.1 written by Dimitri van Heesch, © 1997-2000