class MAPIFolder : public MAPIObject
Outlook folder.
MAPIFolder()
Default constructor
String GetName()
Gets folder name.
bool OpenSubFolder(const String &subFolderName, MAPIFolder &subFolder)
Opens subFolderName under subFolder.
bool CreateSubFolder(const String &subFolderName, MAPIFolder &subFolder)
Creates a folder named subFolderName under subFolder.
bool DeleteSubFolder(const String &subFolder)
Deletes a subfolder named subFolder.
bool DeleteSubFolder(MAPIFolder &folder)
Deletes folder.subfolder.
int GetCount()
Gets the number of items in a folder.
bool SortContents(ULONG ulSortParam = TABLE_SORT_ASCEND, ULONG ulSortField = PR_MESSAGE_DELIVERY_TIME)
Sorts folder items following ulSortParam criteria and using ulSortField column.
bool SetUnreadOnly(bool bUnreadOnly = true)
If bUnreadOnly is true only unread items are considered.
bool GetNextMessage(MAPIMessage& message)
Returns in message the next message.
If there are no more messages it returns false.
bool GetNextContact(MAPIContact& contact)
Returns in contact the next contact.
If there are no more contacts it returns false.
bool GetNextAppointment(MAPIAppointment& appointment)
Returns in appointment the next appointment.
If there are no more appointments it returns false.
bool GetNextSubFolder(MAPIFolder& folder, String& strFolder)
Returns in folder the next subfolder and in strFolder its name.
If there are no more sub folders it returns false.
bool DeleteMessage(MAPIMessage& message)
Deletes the message message.
bool CopyMessage(MAPIMessage& message, MAPIFolder& pFolderDest)
Copies the message message to folder pFolderDest.
bool MoveMessage(MAPIMessage& message, MAPIFolder& pFolderDest)
Moves the message message to folder pFolderDest.
bool DeleteContact(MAPIContact& contact)
Deletes the contact contact.
bool DeleteAppointment(MAPIAppointment& appointment)
Deletes the appointment appointment.
|