imservices/ossprotocoladaptation/inc/presenceauthorization/cpresenceauthuserrequest.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:  Response to authorization request
       
    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 
       
    27 
       
    28 // FORWARD DECLARATIONS
       
    29 class MOSSProtocolConnectionManager;
       
    30 class MXIMPIdentity;
       
    31 class MPresenceInfoFilter;
       
    32 
       
    33 /**
       
    34  * CPresenceAuthUserRequest
       
    35  *
       
    36  * Issue Accept Response of add notification Request to Network Server
       
    37  *
       
    38  */
       
    39  
       
    40  class CPresenceAuthUserRequest: public CActive
       
    41                                 			   
       
    42                                 			   
       
    43     {
       
    44 
       
    45 public:
       
    46 
       
    47     static CPresenceAuthUserRequest* NewL( 	MOSSProtocolConnectionManager& aConnMan,
       
    48     										TXIMPRequestId aRequestId );
       
    49     										
       
    50     static CPresenceAuthUserRequest* NewLC( MOSSProtocolConnectionManager& aConnMan,
       
    51     										TXIMPRequestId aRequestId );
       
    52     										
       
    53     virtual ~CPresenceAuthUserRequest();
       
    54 
       
    55 private:
       
    56 
       
    57     CPresenceAuthUserRequest( MOSSProtocolConnectionManager& aConnMan,
       
    58     										TXIMPRequestId aRequestId  );
       
    59     void ConstructL();
       
    60 
       
    61 private: // from CActive
       
    62 
       
    63     void DoCancel();
       
    64     void RunL();
       
    65     TInt RunError( TInt aError );
       
    66     
       
    67 public:
       
    68     
       
    69 /**
       
    70  * Issue Accept Response of add notification Request to Network Server
       
    71  * 
       
    72  * @param aIdentity: conatct id
       
    73  * aPif : presence info filter
       
    74  */
       
    75    void PresenceAuthUserRequestL(
       
    76 									const MXIMPIdentity & aIdentity,
       
    77 									const MPresenceInfoFilter & aPif);
       
    78  
       
    79 
       
    80 private: // data
       
    81 
       
    82     /**
       
    83      * Request Id from ximpfw
       
    84      */
       
    85     TXIMPRequestId iRequestId;
       
    86  
       
    87     /**
       
    88      * Send data request to pure data handler generates the id
       
    89      */
       
    90     TInt iSendId;
       
    91     
       
    92     /**
       
    93      * Oss Protocol Plugin Connection Manager
       
    94      * Not own.  *** Write "Not own" if some other class owns this object.
       
    95      */
       
    96     MOSSProtocolConnectionManager& iConnMan;
       
    97     
       
    98     };
       
    99 
       
   100 
       
   101 #endif // __CPRESENCEAUTHUSERREQUEST_H__
       
   102