presadap12/impsplugin/inc/presencewatching/cupdatepresentitygroupmemberspresence.h
changeset 0 094583676ce7
equal deleted inserted replaced
-1:000000000000 0:094583676ce7
       
     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:  IMPS Protocol implementation for Presence Framework
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef __CIMPSPLUGINCWATCHUPDATEPRESENTITYGROUPMEMBERSPRESENCEREQUEST_H__
       
    20 #define __CIMPSPLUGINCWATCHUPDATEPRESENTITYGROUPMEMBERSPRESENCEREQUEST_H__
       
    21 
       
    22 
       
    23 //  INCLUDES
       
    24 #include <e32base.h>
       
    25 #include <ximpbase.h>
       
    26 #include "impsdebugprint.h"
       
    27 
       
    28 
       
    29 // FORWARD DECLARATIONS
       
    30 class MImpsPrtPluginConnectionManager;
       
    31 class MPEngXMLParser;
       
    32 class MPEngXmlSerializer;
       
    33 class MPresenceInfoFilter;
       
    34 /**
       
    35  * CUpdatePresentityGroupMembersPresence
       
    36  *
       
    37  * Issue Subscribe PresenceRequest to Network Server
       
    38  *
       
    39  * @lib ?library
       
    40  * @since S60 v4.0
       
    41  */
       
    42 
       
    43 class CUpdatePresentityGroupMembersPresence: public CActive
       
    44 
       
    45 
       
    46     {
       
    47 
       
    48     public:
       
    49 
       
    50         static CUpdatePresentityGroupMembersPresence* NewL(
       
    51             MImpsPrtPluginConnectionManager& aConnMan,
       
    52             TXIMPRequestId aRequestId );
       
    53 
       
    54         static CUpdatePresentityGroupMembersPresence* NewLC(
       
    55             MImpsPrtPluginConnectionManager& aConnMan,
       
    56             TXIMPRequestId aRequestId );
       
    57 
       
    58         virtual ~CUpdatePresentityGroupMembersPresence();
       
    59 
       
    60     private:
       
    61 
       
    62         CUpdatePresentityGroupMembersPresence(
       
    63             MImpsPrtPluginConnectionManager& aConnMan,
       
    64             TXIMPRequestId aRequestId  );
       
    65         void ConstructL();
       
    66 
       
    67     private: // from CActive
       
    68 
       
    69         void DoCancel();
       
    70         void RunL();
       
    71         TInt RunError( TInt aError );
       
    72 
       
    73     public:
       
    74 
       
    75         void UpdatePresentityGroupMembersPresenceL( const TDesC& aContactListId, const MPresenceInfoFilter& aPif );
       
    76 
       
    77 
       
    78     private: // data
       
    79 
       
    80         /**
       
    81          * Request Id from PrFw
       
    82          */
       
    83 
       
    84         TXIMPRequestId iRequestId;
       
    85 
       
    86         /**
       
    87          * Send data request to pure data handler generates the id
       
    88          */
       
    89         TInt iSendId;
       
    90 
       
    91         /**
       
    92          * ?description_of_pointer_member
       
    93          * Own.  *** Write "Own" if this class owns the object pointed to; in
       
    94                      other words, if this class is responsible for deleting it.
       
    95          */
       
    96 
       
    97         MPEngXMLParser* iParser;
       
    98 
       
    99         /**
       
   100          * Imps Protocol Plugin Connection Manager
       
   101          * Not own.  *** Write "Not own" if some other class owns this object.
       
   102          */
       
   103         MImpsPrtPluginConnectionManager& iConnMan;
       
   104     };
       
   105 
       
   106 
       
   107 #endif // __CIMPSPLUGINCWATCHUPDATEPRESENTITYGROUPMEMBERSPRESENCEREQUEST_H__
       
   108