MarkOrDeletePriorFilter
Since: BlackBerry 10.0.0
#include <bb/pim/message/MarkOrDeletePriorFilter>
To link against this class, add the following line to your .pro file: LIBS += -lbbpim
The MarkOrDeletePriorFilter class lets you specify options and parameters for prior options.
This class lets you specify options and parameters for prior options, such as mark or delete. To use this class, you need to instantiate a MarkOrDeletePriorFilter object and set the priorDateTime and folderId. You can optionally set MarkOrDeletePriorFilter::OperateOnFiledMessages or MarkOrDeletePriorFilter::OperateOnSentMessages (these options are not required when specifying a folder ID for a folder operation). Once the object is created, you can pass it to the MessageService::markOrDeletePrior() method.
Overview
Public Types Index
enum OptionsOperateOnFiledMessages 1 << 0, OperateOnSentMessages 1 << 1 |
Public Functions Index
MarkOrDeletePriorFilter () | |
MarkOrDeletePriorFilter (const MarkOrDeletePriorFilter &other) | |
~MarkOrDeletePriorFilter () | |
MessageFolderKey | getFolderId () const |
int | getOptions () const |
QString | getPriorDateTime () const |
bool | isPriorityInboxSearch () const |
MarkOrDeletePriorFilter & | operator= (const MarkOrDeletePriorFilter &other) |
void | setFolderId (MessageFolderKey folderId) |
void | setOptions (int value) |
void | setPriorDateTime (QDateTime &dateTime) |
void | setPriorityInboxSearch (bool) |
Public Types
- OperateOnFiledMessages 1 << 0
Indicates that the prior to date operations should apply to unread messages.
- OperateOnSentMessages 1 << 1
Indicates that the prior to date operations should apply to flagged messages.
This option is not meant to be used for prior operations on search results.Since:BlackBerry 10.0.0
Public Functions
Copy constructor.
This method constructs a MarkOrDeletePriorFilter containing exactly the same values as the provided MarkOrDeletePriorFilter.
Parameters | |
---|---|
other |
The MarkOrDeletePriorFilter to be copied. |
BlackBerry 10.0.0
Destructor.
This method cleans up and frees data and resources for the MarkOrDeletePriorFilter.
BlackBerry 10.0.0
MessageFolderKey
Gets the folder ID of the message folder that MarkOrDeletePriorFilter applies to.
The folder ID of the message folder that MarkOrDeletePriorFilter applies to.
BlackBerry 10.0.0
int
Gets all the options set for this MarkOrDeletePriorFilter.
This method returns the options set for this MarkOrDeletePriorFilter, as defined by MarkOrDeletePriorFilter::Options. For example, to check if OperateOnFiledMessages is set, call this method as follows:
if (getOptions() & MarkOrDeletePriorFilter::OperateOnFiledMessages) != 0
The options that are set, as defined by MarkOrDeletePriorFilter::Options.
BlackBerry 10.0.0
QString
Gets the prior date and time values.
This method gets the prior date and time values used by operations using MarkOrDeletePriorFilter.
A QString object expressed in yyyy-MM-dd hh:mm:ss.zzzzzz format (for example, 2012-07-25 23:59:59.999999).
BlackBerry 10.0.0
bool
Gets the priority inbox flag for MessageSearchFilter.
True if only priority inbox messages are operated on, false otherwise.
BlackBerry 10.2.0
MarkOrDeletePriorFilter &
Assignment operator.
This operator copies all values from the provided MarkOrDeletePriorFilter into this MarkOrDeletePriorFilter.
Parameters | |
---|---|
other |
The MarkOrDeletePriorFilter from which to copy all values. |
A MarkOrDeletePriorFilter with all copied data.
BlackBerry 10.0.0
void
Sets the folder ID of the message folder that MarkOrDeletePriorFilter applies to.
Parameters | |
---|---|
folderId |
The folder where the MarkPrior Or DeletePrior operation is performed. |
BlackBerry 10.0.0
void
Adds option flags to this MarkOrDeletePriorFilter.
This method sets option flags for this MarkOrDeletePriorFilter. For example, if you want to exclude filed messages, call this method as follows:
setOptions(getOptions() | MarkOrDeletePriorFilter::OperateOnFiledMessages)
Parameters | |
---|---|
value |
The MarkOrDeletePriorFilter::Options to set. |
BlackBerry 10.0.0
void
Sets the prior date and time values.
This method sets the prior date and time values used by operations using MarkOrDeletePriorFilter.
Parameters | |
---|---|
dateTime |
The date and time representing the upperbound time limit on the bulk delete action. This is expressed in yyyy-MM-dd hh:mm:ss.zzzzzz format, for example, 2013-07-25 23:59:59.999999). |
BlackBerry 10.0.0
void
Sets the priority inbox flag for MessageSearchFilter.
Parameters | |
---|---|
isPriorityInboxSearch |
True if only priority inbox messages are to be operated on, false otherwise. |
BlackBerry 10.2.0