- Timestamp:
- Sep 5, 2010, 12:42:54 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/notifications/src/modules/notifications/NotificationManager.h
r7349 r7354 40 40 #include <map> 41 41 #include <string> 42 #include <vector> 42 43 43 44 #include "util/Singleton.h" 44 45 #include "core/OrxonoxClass.h" 45 46 46 namespace orxonox 47 { 47 namespace orxonox // tolua_export 48 { // tolua_export 49 48 50 /** 49 51 @brief … … 53 55 Damian 'Mozork' Frick 54 56 */ 55 class _NotificationsExport NotificationManager : public Singleton<NotificationManager>, public OrxonoxClass 56 { 57 class _NotificationsExport NotificationManager // tolua_export 58 : public Singleton<NotificationManager>, public OrxonoxClass 59 { // tolua_export 57 60 friend class Singleton<NotificationManager>; 58 61 public: 59 62 NotificationManager(); 60 63 virtual ~NotificationManager(); 64 65 virtual void preDestroy(void); 66 67 static NotificationManager& getInstance() { return Singleton<NotificationManager>::getInstance(); } // tolua_export 61 68 62 69 static const std::string ALL; //!< Static string to indicate a sender that sends to all NotificationListeners. … … 80 87 { return this->getNotifications(listener, map, std::time(0)-timeDelay, std::time(0)); } 81 88 89 void enterEditMode(void); 90 91 void createQueue(const std::string& name, const std::string& targets, unsigned int size, unsigned int displayTime); // tolua_export 92 82 93 private: 83 94 static NotificationManager* singletonPtr_s; 84 95 85 NotificationQueue* queue_; //!< Initial, first, NotificationQueue.96 std::vector<NotificationQueue*> queues_; //!< The list of NotificationQueues created by the NotificationManager. 86 97 87 98 int highestIndex_; //!< This variable holds the highest index (resp. key) in notificationLists_s, to secure that no key appears twice. … … 94 105 bool removeNotification(Notification* notification, std::multimap<std::time_t, Notification*>& map); //!< Helper method that removes an input notification form an input map. 95 106 96 }; 107 }; // tolua_export 97 108 98 } 109 } // tolua_export 99 110 100 111 #endif /* _NotificationManager_H__ */
Note: See TracChangeset
for help on using the changeset viewer.