Public Types | Public Member Functions
Tonido::Data::Activity Class Reference

Represents a Tonido activity. More...

List of all members.

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.

Detailed Description

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.


Constructor & Destructor Documentation

Tonido::Data::Activity::Activity ( )

Ctor.

details if needed ...

Tonido::Data::Activity::Activity ( Level  a_level,
Source  a_source,
const std::string &  a_message 
)

Ctor.

Parameters:
a_levelis the level for the activity
a_sourceis type of activity
a_messageis the message associated with this activity
Tonido::Data::Activity::~Activity ( )

Dtor.

details if needed ...


Member Function Documentation

const Poco::DateTime& Tonido::Data::Activity::getDate ( )

Get date associated with activity.

Returns:
datetime associated with activity
std::string Tonido::Data::Activity::getDateDB ( )

Get date in string format associated with activity.

Returns:
date in string format
int Tonido::Data::Activity::getID ( )

Get unique id of this activity.

Returns:
the unique id associated with this activity
Level Tonido::Data::Activity::getLevel ( )

Get level associated with activity.

Returns:
the activity level associated with this activity
const std::string& Tonido::Data::Activity::getMessage ( )

Get message associated with this activity.

Returns:
the message associated with this activity
Source Tonido::Data::Activity::getSource ( )

Get source of this activity.

Returns:
the source associated with this activity
void Tonido::Data::Activity::setID ( int  a_id)

Set unique id of this activity.

Parameters:
a_idis the unique id
Returns:
void

Generated on Wed Oct 12 2011 21:46:53. © CodeLathe LLC 2007-2011. All Rights Reserved.