epoc32/include/rsendas.h
branchSymbian2
changeset 3 e1b950c65cb4
parent 2 2fe1408b6811
child 4 837f303aceeb
     1.1 --- a/epoc32/include/rsendas.h	Tue Mar 16 16:12:26 2010 +0000
     1.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.3 @@ -1,117 +0,0 @@
     1.4 -// Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies).
     1.5 -// All rights reserved.
     1.6 -// This component and the accompanying materials are made available
     1.7 -// under the terms of the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
     1.8 -// which accompanies this distribution, and is available
     1.9 -// at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
    1.10 -//
    1.11 -// Initial Contributors:
    1.12 -// Nokia Corporation - initial contribution.
    1.13 -//
    1.14 -// Contributors:
    1.15 -//
    1.16 -// Description:
    1.17 -//
    1.18 -
    1.19 -#ifndef __RSENDAS_H__
    1.20 -#define __RSENDAS_H__
    1.21 -
    1.22 -#include <e32base.h>
    1.23 -
    1.24 -class CSendAsMessageTypes;
    1.25 -class CSendAsAccounts;
    1.26 -
    1.27 -/**
    1.28 -The default number of message slots available to a session. This determines the
    1.29 -number of outstanding requests the client may have with the server at any one
    1.30 -time.
    1.31 -*/
    1.32 -const TInt KSendAsDefaultMessageSlots = 4;
    1.33 -
    1.34 -/**
    1.35 -Encapsulates a session with the SendAs Server.
    1.36 -
    1.37 -This class allows a user to determine the message types available to the SendAs
    1.38 -server and also provides functionality for clients to filter this list to find 
    1.39 -the UIDs required to create messages.
    1.40 -
    1.41 -@publishedAll
    1.42 -@released
    1.43 -*/
    1.44 -class RSendAs : public RSessionBase
    1.45 -	{
    1.46 -public:
    1.47 -
    1.48 -/**
    1.49 -Defines the condition-checking of message capabilities. These are progressively
    1.50 -added to refine the list of available MTMs.
    1.51 -*/
    1.52 -	enum TSendAsConditionType
    1.53 -		{
    1.54 -		/**
    1.55 -		No MTMs are removed as a result of applying this condition to the
    1.56 -		filtering.
    1.57 -		*/
    1.58 -		ESendAsNoCondition,
    1.59 -		/**
    1.60 -		Only MTMs whose capabilities match the given value will remain as a
    1.61 -		result of applying this condition to the filtering.
    1.62 -		*/
    1.63 -		ESendAsEquals,
    1.64 -		/**
    1.65 -		Only MTMs whose capabilities do not match the given value will remain 
    1.66 -		as a result of applying this condition to the filtering.
    1.67 -		*/
    1.68 -		ESendAsNotEquals,
    1.69 -		/**
    1.70 -		Only MTMs whose capabilities greater than the given value will remain
    1.71 -		as a result of applying this condition to the filtering.
    1.72 -		*/
    1.73 -		ESendAsGreaterThan,
    1.74 -		/**
    1.75 -		Only MTMs whose capabilities less than the given value will remain as a
    1.76 -		result of applying this condition to the filtering.
    1.77 -		*/
    1.78 -		ESendAsLessThan,
    1.79 -		/**
    1.80 -		Only MTMs whose capabilities result non-zero value when bitwise ANDed
    1.81 -		with the given value will remain as a result of applying this condition
    1.82 -		to the filtering.
    1.83 -		*/
    1.84 -		ESendAsBitwiseAnd,
    1.85 -		/**
    1.86 -		Only MTMs whose capabilities result non-zero value when bitwise ORed
    1.87 -		with the given value will remain as a result of applying this condition
    1.88 -		to the filtering.
    1.89 -		*/
    1.90 -		ESendAsBitwiseOr,
    1.91 -		/**
    1.92 -		Only MTMs whose capabilities result non-zero value when bitwise NANDed
    1.93 -		with the given value will remain as a result of applying this condition
    1.94 -		to the filtering.
    1.95 -		*/
    1.96 -		ESendAsBitwiseNand,
    1.97 -		/**
    1.98 -		Only MTMs whose capabilities result non-zero value when bitwise NORed
    1.99 -		with the given value will remain as a result of applying this condition
   1.100 -		to the filtering.
   1.101 -		*/
   1.102 -		ESendAsBitwiseNor
   1.103 -		};
   1.104 -
   1.105 -public:
   1.106 -	IMPORT_C TInt Connect();
   1.107 -	IMPORT_C TInt Connect(TInt aMessageSlots);
   1.108 -	
   1.109 -	IMPORT_C void FilteredMessageTypesL(CSendAsMessageTypes& aMessageTypeInfo);
   1.110 -	IMPORT_C TInt FilterAgainstCapability(TUid aMessageCapability);
   1.111 -	IMPORT_C TInt FilterAgainstCapability(TUid aMessageCapability, TInt aValue, TSendAsConditionType aConditionType);
   1.112 -	IMPORT_C TInt ResetMessageFilter();
   1.113 -	
   1.114 -	IMPORT_C void AvailableAccountsL(TUid aMessageType, CSendAsAccounts& aAccounts);
   1.115 -
   1.116 -private:
   1.117 -	TAny* iAny; // Future proofing.
   1.118 -	};
   1.119 -
   1.120 -#endif	//  __RSENDAS_H__