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