50 #ifndef _ContextManager_H_
51 #define _ContextManager_H_
53 #include "IContextManager.h"
55 #include "IContextListener.h"
57 #include "system/compat/SystemCompat.h"
58 using namespace ::br::pucrio::telemidia::ginga::core::system::compat;
60 #include "system/thread/Thread.h"
61 using namespace ::br::pucrio::telemidia::ginga::core::system::thread;
71 namespace contextmanager {
74 map<int, IGingaUser*> users;
75 map<int, map<string, string>*> contexts;
76 set<IContextListener*> ctxListeners;
77 string usersUri, contextsUri;
83 pthread_mutex_t groupsMutex;
90 void initializeUsers();
91 void initializeContexts();
94 void addContextVar(
int userId,
string varName,
string varValue);
96 void saveUsersAccounts();
97 void saveUsersProfiles();
100 void setGlobalVar(
string varName,
string varValue);
103 void saveProfile(FILE* fd,
int userId, map<string, string>* profile);
106 void setCurrentUserId(
int userId);
107 int getCurrentUserId();
111 map<string,string>* getUserMap(
int userId);
114 map<string,string>* getUserProfile(
int userId);
115 map<string, string>* getUsersNames();
119 void listUsersNicks();
Definition: ContextManager.h:72
Definition: IGingaUser.h:62
Definition: IContextManager.h:67
Definition: ISystemInfo.h:65
Definition: IContextListener.h:62