presadap12/impsplugin/inc/presentitygroups/cupdatepresentitygroupmemberdisplaynamerequest.h
branchRCL_3
changeset 13 a941bc465d9f
parent 0 094583676ce7
equal deleted inserted replaced
12:6ca72c0fe49a 13:a941bc465d9f
       
     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 __CUPDATEPRESENTITYGROUPMEMBERDISPLAYNAMEREQUEST_H__
       
    20 #define __CUPDATEPRESENTITYGROUPMEMBERDISPLAYNAMEREQUEST_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 MXIMPIdentity;
       
    34 
       
    35 /**
       
    36  * CUpdatePresentityGroupMemberDisplayNameRequest
       
    37  *
       
    38  * Issue Add Presentity Group Member Request to Network Server
       
    39  *
       
    40  * @lib ?library
       
    41  * @since S60 v4.0
       
    42  */
       
    43 
       
    44 class CUpdatePresentityGroupMemberDisplayNameRequest: public CActive
       
    45 
       
    46 
       
    47     {
       
    48 
       
    49     public:
       
    50 
       
    51         static CUpdatePresentityGroupMemberDisplayNameRequest* NewL(
       
    52             MImpsPrtPluginConnectionManager& aConnMan,
       
    53             TXIMPRequestId aRequestId );
       
    54 
       
    55         static CUpdatePresentityGroupMemberDisplayNameRequest* NewLC(
       
    56             MImpsPrtPluginConnectionManager& aConnMan,
       
    57             TXIMPRequestId aRequestId );
       
    58 
       
    59         virtual ~CUpdatePresentityGroupMemberDisplayNameRequest();
       
    60 
       
    61     private:
       
    62 
       
    63         CUpdatePresentityGroupMemberDisplayNameRequest(
       
    64             MImpsPrtPluginConnectionManager& aConnMan,
       
    65             TXIMPRequestId aRequestId  );
       
    66         void ConstructL();
       
    67 
       
    68     private: // from CActive
       
    69 
       
    70         void DoCancel();
       
    71         void RunL();
       
    72         TInt RunError( TInt aError );
       
    73 
       
    74     public:
       
    75 
       
    76         void UpdatePresentityGroupMemberDisplayNameL(
       
    77             const MXIMPIdentity& aGroupId,
       
    78             const MXIMPIdentity& aMemberId,
       
    79             const TDesC16& aMemberDisplayName );
       
    80 
       
    81 
       
    82     private: // data
       
    83 
       
    84         /**
       
    85          * Request Id from PrFw
       
    86          */
       
    87 
       
    88         TXIMPRequestId iRequestId;
       
    89 
       
    90         /**
       
    91          * Send data request to pure data handler generates the id
       
    92          */
       
    93         TInt iSendId;
       
    94         HBufC8* iResponse;
       
    95         HBufC16* iMemberDisplayName;
       
    96         HBufC16*iGroupId;
       
    97         HBufC16* iMemberId;
       
    98         /**
       
    99          * ?description_of_pointer_member
       
   100          * Own.  *** Write "Own" if this class owns the object pointed to; in
       
   101                      other words, if this class is responsible for deleting it.
       
   102          */
       
   103 
       
   104         MPEngXMLParser* iParser;
       
   105 
       
   106         /**
       
   107          * Imps Protocol Plugin Connection Manager
       
   108          * Not own.  *** Write "Not own" if some other class owns this object.
       
   109          */
       
   110         MImpsPrtPluginConnectionManager& iConnMan;
       
   111 
       
   112     };
       
   113 
       
   114 
       
   115 #endif // __CUPDATEPRESENTITYGROUPMEMBERDISPLAYNAMEREQUEST_H__
       
   116