#include <mw/rsendas.h>
class RSendAs : public RSessionBase |
Public Member Enumerations | |
---|---|
enum | TSendAsConditionType { ESendAsNoCondition, ESendAsEquals, ESendAsNotEquals, ESendAsGreaterThan, ..., ESendAsBitwiseNor } |
Public Member Functions | |
---|---|
IMPORT_C void | AvailableAccountsL(TUid, CSendAsAccounts &) |
IMPORT_C TInt | Connect() |
IMPORT_C TInt | Connect(TInt) |
IMPORT_C TInt | FilterAgainstCapability(TUid) |
IMPORT_C TInt | FilterAgainstCapability(TUid, TInt, TSendAsConditionType) |
IMPORT_C void | FilteredMessageTypesL(CSendAsMessageTypes &) |
IMPORT_C TInt | ResetMessageFilter() |
Inherited Attributes | |
---|---|
RHandleBase::iHandle |
Inherited Enumerations | |
---|---|
RHandleBase:TAttributes | |
RSessionBase:TAttachMode |
Encapsulates a session with the SendAs Server.
This class allows a user to determine the message types available to the SendAs server and also provides functionality for clients to filter this list to find the UIDs required to create messages.
Defines the condition-checking of message capabilities. These are progressively added to refine the list of available MTMs.
IMPORT_C void | AvailableAccountsL | ( | TUid | aMessageType, |
CSendAsAccounts & | aAccounts | |||
) |
Returns the connected session's available accounts for message types.
Parameter | Description |
---|---|
aMessageType | The message type UID which the accounts should support. |
aAccounts | On success this will be populated with the available accounts which support the supplied message type. |
IMPORT_C TInt | Connect | ( | ) |
Establishes a connection to the SendAs Server.
Returns: KErrNone on success, a system wide error code otherwise.
Establishes a connection to the SendAs Server.
Parameter | Description |
---|---|
aMessageSlots | The number of message slots available to this session. This determines the number of outstanding requests the client may have with the server at any one time. The maximum number of slots is 255. If aMessageSlots==-1 then this indicates that the RSendAs connection should use messages from the global free pool of messages. |
Returns: KErrNone on success, a system wide error code otherwise.
Refines the connected session's available message types. Applying a filter will remove all mtms which do not support the supplied capability
Parameter | Description |
---|---|
aMessageCapability | This defines the capability describing which of the available MTMs held by the SendAs session should remain. |
Returns: KErrNone on success, a system wide error code otherwise.
IMPORT_C TInt | FilterAgainstCapability | ( | TUid | aMessageCapability, |
TInt | aValue, | |||
TSendAsConditionType | aConditionType | |||
) |
Refines the connected session's available message types. Applying a filter will remove all mtms which do not satisfy the supplied condition.
See also: TSendAsConditionType
Parameter | Description |
---|---|
aMessageCapability | This defines the capability describing which MTMs held by the SendAs session should be filtered. Other mtms will be removed. |
aValue | The value to be applied to the available MTMs in combination with the filter condition. MTMs which satify the condition will not be removed from the available MTM list. |
aConditionType | The condition which to apply to the list of MTMs. |
Returns: KErrNone on success, a system wide error code otherwise.
IMPORT_C void | FilteredMessageTypesL | ( | CSendAsMessageTypes & | aMessageTypeInfo | ) |
Retrieves the connected session's available message types from the SendAs Server. This will filter all MTMs that can send messages. This list can be refined by applying filters using FilterAgainstCapability.
See also: CSendAsMessageTypes
Parameter | Description |
---|---|
aMessageTypeInfo | This is the CSendAsMessageType into which the session's MTM list information will be stored. |
IMPORT_C TInt | ResetMessageFilter | ( | ) |
Refreshes the connected session's available message types to all MTMs which can send messages.
Returns: KErrNone on success, a system wide error code otherwise.