ximpfw/presence/srcpresenceoperations/presencewatching/operationsubscribepresentitygroupmemberspresence.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: Operationon SubscribePresentityGroupMembers Presence
       
    15  *
       
    16 */
       
    17 
       
    18 #ifndef CPSCOPERATIONSUBSCRIBEPRESENTITYGROUPMEMBERSPRESENCE_H
       
    19 #define CPSCOPERATIONSUBSCRIBEPRESENTITYGROUPMEMBERSPRESENCE_H
       
    20 
       
    21 
       
    22 #include <e32base.h>
       
    23 #include <ximpbase.h>
       
    24 
       
    25 #include "ximpoperationbase.h"
       
    26 #include "presentitygroupmemberspresencesubscriptionitem.h"
       
    27 
       
    28 /**
       
    29  * Group members presence subscription
       
    30  *
       
    31  * @lib ximpoperations.lib
       
    32  * @since S60 v4.0
       
    33  */
       
    34 class COperationSubscribePresentityGroupMembersPresence : public CXIMPOperationBase
       
    35     {
       
    36 
       
    37     public:
       
    38 
       
    39         IMPORT_C COperationSubscribePresentityGroupMembersPresence();
       
    40 
       
    41         void ConstructL( const TDesC8& aParamPck );
       
    42 
       
    43         ~COperationSubscribePresentityGroupMembersPresence();
       
    44 
       
    45 
       
    46     public: // from CXIMPOperationBase
       
    47 
       
    48         void ProcessL();
       
    49 
       
    50         void RequestCompletedL();
       
    51 
       
    52         TInt Type() const;
       
    53 
       
    54     private: // Helper methods
       
    55 
       
    56         /**
       
    57          * Synthesise event after completion
       
    58          */
       
    59         void SynthesiseEventL();
       
    60 
       
    61     private: // data
       
    62 
       
    63         /**
       
    64          * Presentity address
       
    65          * Own.
       
    66          */
       
    67         CXIMPIdentityImp* iGroupId;
       
    68 
       
    69         /**
       
    70          * Subscription item
       
    71          */
       
    72         CPresentityGroupMembersPresenceSubscriptionItem* iSubItem;
       
    73         
       
    74         /**
       
    75          * Presence info filter having new presence info filter for context.
       
    76          * Own.
       
    77          */
       
    78         CPresenceInfoFilterImp* iMergedPif; 
       
    79         
       
    80         /**
       
    81          * Pif from call
       
    82          */
       
    83         CPresenceInfoFilterImp* iPif;
       
    84         
       
    85         /**
       
    86          * Subscription status
       
    87          */
       
    88         CPresentityGroupMembersPresenceSubscriptionItem::TSubscriptionStatus iSubscriptionStatus;
       
    89         
       
    90         /**
       
    91          * Don't force event.
       
    92          */
       
    93         TBool iDoNotForce;        
       
    94     };
       
    95 
       
    96 
       
    97 #endif // CPSCOPERATIONSUBSCRIBEPRESENTITYGROUPMEMBERSPRESENCE_H