VMime
|
Public Types | |
enum | Types { TYPE_CREATED, TYPE_DELETED, TYPE_RENAMED } |
Public Member Functions | |
folderEvent (shared_ptr< folder > folder, const Types type, const utility::path &oldPath, const utility::path &newPath) | |
shared_ptr< folder > | getFolder () const |
Types | getType () const |
void | dispatch (class folderListener *listener) |
const char * | getClass () const |
![]() | |
event () | |
virtual | ~event () |
Static Public Attributes | |
static const char * | EVENT_CLASS = "folderEvent" |
Additional Inherited Members | |
![]() | |
object () | |
object (const object &) | |
object & | operator= (const object &) |
virtual | ~object () |
Event occuring on a folder.
enum Types |
folderEvent | ( | shared_ptr< folder > | folder, |
const Types | type, | ||
const utility::path & | oldPath, | ||
const utility::path & | newPath | ||
) |
void dispatch | ( | class folderListener * | listener | ) |
Dispatch the event to the specified listener.
listener | listener to notify |
References folderListener::folderCreated(), folderListener::folderDeleted(), folderListener::folderRenamed(), folderEvent::TYPE_CREATED, folderEvent::TYPE_DELETED, and folderEvent::TYPE_RENAMED.
|
virtual |
Implements event.
References folderEvent::EVENT_CLASS.
shared_ptr< folder > getFolder | ( | ) | const |
Return the folder on which the event occured.
folderEvent::Types getType | ( | ) | const |
Return the event type.
|
static |
Referenced by folderEvent::getClass(), and folder::notifyEvent().