ximpfw/presence/srcpresenceoperations/operationsynthesisesubscriptionevent.h
changeset 0 e6b17d312c8b
equal deleted inserted replaced
-1:000000000000 0:e6b17d312c8b
       
     1 /*
       
     2 * Copyright (c) 2006 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:  Internal synthesise subscription event operation
       
    15  *
       
    16 */
       
    17 
       
    18 #ifndef CPSCOPERATIONSYNTHESISESUBSCRIPTIONEVENT_H
       
    19 #define CPSCOPERATIONSYNTHESISESUBSCRIPTIONEVENT_H
       
    20 
       
    21 
       
    22 #include <e32base.h>
       
    23 #include <ximpbase.h>
       
    24 
       
    25 #include "ximpoperationbase.h"
       
    26 #include "presenceoperationdefs.h"
       
    27 
       
    28 class CXIMPIdentityImp;
       
    29 
       
    30 /**
       
    31  * Internal synthesise own subscription event operation
       
    32  *
       
    33  * @lib ximpoperations.lib
       
    34  * @since S60 v4.0
       
    35  */
       
    36 class COperationSynthesiseSubscriptionEvent : public CXIMPOperationBase
       
    37     {
       
    38     public: // Definitions
       
    39 
       
    40         enum TSubscriptionType
       
    41             {
       
    42             EOwnPresence,
       
    43             EPresenceBlockList,
       
    44             EPresenceGrantRequestList,
       
    45             EPresenceWatcherList,
       
    46             EPresentityGroupList,
       
    47             EPresentityGroupContent,
       
    48             EPresentityPresence,
       
    49             EPresentityGroupMembersPresence,
       
    50             };
       
    51 
       
    52     public:
       
    53 
       
    54         IMPORT_C COperationSynthesiseSubscriptionEvent( TSubscriptionType aType,
       
    55                                                            TBool aForceEvent );
       
    56 
       
    57         void ConstructL( const CXIMPIdentityImp& aIdentity );
       
    58         void ConstructL( const TDesC8& aParamPck );
       
    59 
       
    60         ~COperationSynthesiseSubscriptionEvent();
       
    61 
       
    62 
       
    63     public: // from CXIMPOperationBase
       
    64 
       
    65         void ProcessL();
       
    66 
       
    67         void RequestCompletedL();
       
    68 
       
    69         TInt Type() const;
       
    70 
       
    71     private: // data
       
    72 
       
    73     /**
       
    74      * Type of subscription to synthesise.
       
    75      */
       
    76     TSubscriptionType iType;
       
    77 
       
    78     /**
       
    79      * Identity for presentity presence synthetization.
       
    80      */
       
    81     CXIMPIdentityImp* iIdentity;
       
    82 
       
    83     /**
       
    84      * If event should be forced.
       
    85      */
       
    86     TBool iForceEvent;
       
    87 
       
    88     };
       
    89 
       
    90 
       
    91 #endif // CPSCOPERATIONSYNTHESISESUBSCRIPTIONEVENT_H