Represents a Tonido activity. More...
Public Types | |
| enum | Level { LEVEL_LOW = 1, LEVEL_NORMAL = 2, LEVEL_HIGH = 3 } |
| enum | Source { SOURCE_FILE = 1, SOURCE_NETWORK = 2, SOURCE_WEBSERVER = 3, SOURCE_PLUGIN = 4, SOURCE_GROUP = 5, SOURCE_MESSAGE = 6, SOURCE_UPDATE = 7, SOURCE_SECURITY = 8, SOURCE_INVITATION = 9, SOURCE_REMOTEACCESS = 10 } |
|
typedef boost::shared_ptr < Activity > | SharedPtr |
|
typedef std::vector < Activity::SharedPtr > | Collection |
Public Member Functions | |
| Activity () | |
| Ctor. | |
| Activity (Level a_level, Source a_source, const std::string &a_message) | |
| Ctor. | |
| Activity (int a_id, Level a_level, Source a_source, const std::string &a_message, const std::string &a_date) | |
| ~Activity () | |
| Dtor. | |
| const Poco::DateTime & | getDate () |
| Get date associated with activity. | |
| std::string | getDateDB () |
| Get date in string format associated with activity. | |
| Level | getLevel () |
| Get level associated with activity. | |
| Source | getSource () |
| Get source of this activity. | |
| const std::string & | getMessage () |
| Get message associated with this activity. | |
| int | getID () |
| Get unique id of this activity. | |
| void | setID (int a_id) |
| Set unique id of this activity. | |
Represents a Tonido activity.
An Activity is a log item that the user views via the UI.
An Activity can be added whenever the user needs to be alerted or informed about some Tonido action.
| Tonido::Data::Activity::Activity | ( | ) |
Ctor.
details if needed ...
| Tonido::Data::Activity::Activity | ( | Level | a_level, |
| Source | a_source, | ||
| const std::string & | a_message | ||
| ) |
Ctor.
| a_level | is the level for the activity |
| a_source | is type of activity |
| a_message | is the message associated with this activity |
| Tonido::Data::Activity::~Activity | ( | ) |
Dtor.
details if needed ...
| const Poco::DateTime& Tonido::Data::Activity::getDate | ( | ) |
Get date associated with activity.
| std::string Tonido::Data::Activity::getDateDB | ( | ) |
Get date in string format associated with activity.
| int Tonido::Data::Activity::getID | ( | ) |
Get unique id of this activity.
| Level Tonido::Data::Activity::getLevel | ( | ) |
Get level associated with activity.
| const std::string& Tonido::Data::Activity::getMessage | ( | ) |
Get message associated with this activity.
| Source Tonido::Data::Activity::getSource | ( | ) |
Get source of this activity.
| void Tonido::Data::Activity::setID | ( | int | a_id | ) |
Set unique id of this activity.
| a_id | is the unique id |