ximpfw/presence/srcpresenceoperations/presenceauthorization/operationgrantpresencetoeveryone.h
changeset 51 61fad867f68e
equal deleted inserted replaced
-1:000000000000 51:61fad867f68e
       
     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 everyone
       
    15  *
       
    16 */
       
    17 
       
    18 #ifndef CPSCOPERATIONGRANTPRESENCETOEVERYONE_H
       
    19 #define CPSCOPERATIONGRANTPRESENCETOEVERYONE_H
       
    20 
       
    21 
       
    22 #include <e32base.h>
       
    23 
       
    24 #include <ximpbase.h>
       
    25 #include "ximpoperationbase.h"
       
    26 #include "presencetoeveryoneconfigurationitem.h"
       
    27 
       
    28 #include "presenceoperationdefs.h"
       
    29 
       
    30 class CXIMPIdentityImp;
       
    31 
       
    32 /**
       
    33  * Grant presence to everyone
       
    34  *
       
    35  * @lib ximpoperations.lib
       
    36  * @since S60 v4.0
       
    37  */
       
    38 class COperationGrantPresenceToEveryone : public CXIMPOperationBase
       
    39     {
       
    40 
       
    41     public:
       
    42 
       
    43         IMPORT_C COperationGrantPresenceToEveryone();
       
    44 
       
    45         void ConstructL( const TDesC8& aParamPck );
       
    46 
       
    47         ~COperationGrantPresenceToEveryone();
       
    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          * Authorization item for configuration
       
    79          */
       
    80         CPresenceToEveryoneConfigurationItem* iConfItem;
       
    81         
       
    82         /**
       
    83          * Subscription status
       
    84          */
       
    85         CPresenceToEveryoneConfigurationItem::TConfigurationStatus iConfigurationStatus;
       
    86         
       
    87         /**
       
    88          * Don't force event.
       
    89          */
       
    90         TBool iDoNotForce;        
       
    91     };
       
    92 
       
    93 
       
    94 #endif // CPSCOPERATIONGRANTPRESENCETOEVERYONE_H