presadap12/impsplugin/inc/presenceauthorization/cpresenceauthuserrequest.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 __CPRESENCEAUTHUSERREQUEST_H__
       
    20 #define __CPRESENCEAUTHUSERREQUEST_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 class MPresenceInfoFilter;
       
    35 
       
    36 /**
       
    37  * CPresenceAuthUserRequest
       
    38  *
       
    39  * Issue Add Presentity Group Member Request to Network Server
       
    40  *
       
    41  * @lib ?library
       
    42  * @since S60 v4.0
       
    43  */
       
    44 
       
    45 class CPresenceAuthUserRequest: public CActive
       
    46 
       
    47 
       
    48     {
       
    49 
       
    50     public:
       
    51 
       
    52         static CPresenceAuthUserRequest* NewL(
       
    53             MImpsPrtPluginConnectionManager& aConnMan,
       
    54             TXIMPRequestId aRequestId );
       
    55 
       
    56         static CPresenceAuthUserRequest* NewLC(
       
    57             MImpsPrtPluginConnectionManager& aConnMan,
       
    58             TXIMPRequestId aRequestId );
       
    59 
       
    60         virtual ~CPresenceAuthUserRequest();
       
    61 
       
    62     private:
       
    63 
       
    64         CPresenceAuthUserRequest(
       
    65             MImpsPrtPluginConnectionManager& aConnMan,
       
    66             TXIMPRequestId aRequestId  );
       
    67         void ConstructL();
       
    68 
       
    69     private: // from CActive
       
    70 
       
    71         void DoCancel();
       
    72         void RunL();
       
    73         TInt RunError( TInt aError );
       
    74 
       
    75     public:
       
    76 
       
    77         void PresenceAuthUserRequestL(
       
    78             const MXIMPIdentity & aIdentity,
       
    79             const MPresenceInfoFilter & aPif );
       
    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* iMemberid;
       
    96 
       
    97         /**
       
    98          * ?description_of_pointer_member
       
    99          * Own.  *** Write "Own" if this class owns the object pointed to; in
       
   100                      other words, if this class is responsible for deleting it.
       
   101          */
       
   102 
       
   103         MPEngXMLParser* iParser;
       
   104 
       
   105         /**
       
   106          * Imps Protocol Plugin Connection Manager
       
   107          * Not own.  *** Write "Not own" if some other class owns this object.
       
   108          */
       
   109         MImpsPrtPluginConnectionManager& iConnMan;
       
   110 
       
   111     };
       
   112 
       
   113 
       
   114 #endif // __CPRESENCEAUTHUSERREQUEST_H__
       
   115