ximpfw/presence/srcpresenceoperations/presenceauthorization/operationgrantpresencetopresentity.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:  Grant presence to presentity operation
       
    15  *
       
    16 */
       
    17 
       
    18 #ifndef CPSCOPERATIONGRANTPRESENCETOPRESENTITY_H
       
    19 #define CPSCOPERATIONGRANTPRESENCETOPRESENTITY_H
       
    20 
       
    21 
       
    22 #include <e32base.h>
       
    23 
       
    24 #include <ximpbase.h>
       
    25 #include "ximpoperationbase.h"
       
    26 #include "presenceconfigurationitem.h"
       
    27 
       
    28 #include "presenceoperationdefs.h"
       
    29 
       
    30 class CXIMPIdentityImp;
       
    31 
       
    32 /**
       
    33  * Grant presence to presentity operation
       
    34  *
       
    35  * @lib ximpoperations.lib
       
    36  * @since S60 v4.0
       
    37  */
       
    38 class COperationGrantPresenceToPresentity : public CXIMPOperationBase
       
    39     {
       
    40 
       
    41     public:
       
    42 
       
    43         IMPORT_C COperationGrantPresenceToPresentity();
       
    44 
       
    45         void ConstructL( const TDesC8& aParamPck );
       
    46 
       
    47         ~COperationGrantPresenceToPresentity();
       
    48 
       
    49 
       
    50     public: // from CXIMPOperationBase
       
    51 
       
    52         void ProcessL();
       
    53 
       
    54         void RequestCompletedL();
       
    55 
       
    56         TInt Type() const;
       
    57         
       
    58     private: // Helper methods
       
    59     
       
    60         /**
       
    61          * Synthesise event after completion
       
    62          */
       
    63         void SynthesiseEventL();      
       
    64 
       
    65     private: // data
       
    66 
       
    67         /**
       
    68          * Presence information filter
       
    69          */
       
    70         CPresenceInfoFilterImp* iPif;
       
    71         
       
    72         /**
       
    73          * Merged pif with other contexts.
       
    74          */
       
    75         CPresenceInfoFilterImp* iMergedPif;
       
    76 
       
    77         /**
       
    78          * Identity 
       
    79          */
       
    80         CXIMPIdentityImp* iIdentity;
       
    81         
       
    82         /**
       
    83          * Authorization item for configuration
       
    84          */
       
    85         CPresenceConfigurationItem* iConfItem;
       
    86         
       
    87         /**
       
    88          * Subscription status
       
    89          */
       
    90         CPresenceConfigurationItem::TConfigurationStatus iConfigurationStatus;
       
    91         
       
    92         /**
       
    93          * Don't force event.
       
    94          */
       
    95         TBool iDoNotForce;                
       
    96     };
       
    97 
       
    98 
       
    99 #endif // CPSCOPERATIONGRANTPRESENCETOPRESENTITY_H