imservices/ossprotocoladaptation/inc/presentitygroups/caddpresentitygroupmemberrequest.h
changeset 46 860cd8a5168c
parent 35 085f765766a0
equal deleted inserted replaced
35:085f765766a0 46:860cd8a5168c
     1 /*
       
     2 * Copyright (c) 2007-2008 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:  Add presentity group member request
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef __CADDPRESENTITYGROUPMEMBERREQUEST_H__
       
    20 #define __CADDPRESENTITYGROUPMEMBERREQUEST_H__
       
    21 
       
    22 
       
    23 //  INCLUDES
       
    24 #include <e32base.h>
       
    25 #include <ximpbase.h>
       
    26 
       
    27 
       
    28 // FORWARD DECLARATIONS
       
    29 class MOSSProtocolConnectionManager;
       
    30 class MXIMPIdentity;
       
    31 
       
    32 /**
       
    33  * CAddPresentityGroupMemberRequest
       
    34  *
       
    35  * Issue Add Presentity Group Member Request to Network Server
       
    36  *
       
    37  */
       
    38  
       
    39  class CAddPresentityGroupMemberRequest: public CActive
       
    40                                 			   
       
    41                                 			   
       
    42     {
       
    43 
       
    44 public:
       
    45 
       
    46     										
       
    47     static CAddPresentityGroupMemberRequest* NewLC( 
       
    48     										MOSSProtocolConnectionManager& aConnMan,
       
    49     										TXIMPRequestId aRequestId );
       
    50     										
       
    51     virtual ~CAddPresentityGroupMemberRequest();
       
    52 
       
    53 private:
       
    54 
       
    55     CAddPresentityGroupMemberRequest( 
       
    56     										MOSSProtocolConnectionManager& aConnMan,
       
    57     										TXIMPRequestId aRequestId  );
       
    58     void ConstructL();
       
    59 
       
    60 private: // from CActive
       
    61 
       
    62     void DoCancel();
       
    63     /*
       
    64      * RunL() function also deletes the request object once the activity is done
       
    65      *
       
    66      */
       
    67     void RunL();
       
    68     TInt RunError( TInt aError );
       
    69     
       
    70 public:
       
    71      /**
       
    72       * Add contact to the list
       
    73       * @param aGroupId group identity
       
    74       * @param aMemberId conatct identity
       
    75       * @param aMemberDisplayName contact displayname
       
    76       */
       
    77    	void AddPresentityGroupMemberL(	const MXIMPIdentity& aGroupId,
       
    78 									const MXIMPIdentity& aMemberId,
       
    79 								    const TDesC16& aMemberDisplayName );
       
    80  
       
    81 
       
    82 private: // data
       
    83 
       
    84     /**
       
    85      * Request Id from ximpfw
       
    86      */
       
    87     
       
    88     TXIMPRequestId iRequestId;
       
    89     
       
    90     /**
       
    91      * Send data request to pure data handler generates the id
       
    92      */
       
    93     TInt iSendId;
       
    94     
       
    95     /**
       
    96      * Oss Protocol Plugin Connection Manager
       
    97      * Not own.  *** Write "Not own" if some other class owns this object.
       
    98      */
       
    99     MOSSProtocolConnectionManager& iConnMan;
       
   100     
       
   101     /*
       
   102      * Stores contactid
       
   103      * Own
       
   104      */
       
   105     HBufC* iContactId;
       
   106     };
       
   107 
       
   108 
       
   109 #endif // __CADDPRESENTITYGROUPMEMBERREQUEST_H__
       
   110