imservices/ossprotocoladaptation/inc/presenceauthorization/cwithdrawpresencegrantfrompresentityrequest.h
changeset 46 860cd8a5168c
parent 35 085f765766a0
equal deleted inserted replaced
35:085f765766a0 46:860cd8a5168c
     1 /*
       
     2 * Copyright (c) 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 __CWITHDRAWPRESENCEGRANTFROMPRESENTITYREQUEST_H__
       
    20 #define __CWITHDRAWPRESENCEGRANTFROMPRESENTITYREQUEST_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  * CWithdrawPresenceGrantFromPresentityRequest
       
    35  *
       
    36  * Issue Rejecting Response of add notification Request to Network Server
       
    37  *
       
    38  */
       
    39  
       
    40  class CWithdrawPresenceGrantFromPresentityRequest: public CActive
       
    41                                 			   
       
    42                                 			   
       
    43     {
       
    44 
       
    45 public:
       
    46 
       
    47     static CWithdrawPresenceGrantFromPresentityRequest* NewL( 	MOSSProtocolConnectionManager& aConnMan,
       
    48     										TXIMPRequestId aRequestId );
       
    49     										
       
    50     static CWithdrawPresenceGrantFromPresentityRequest* NewLC( MOSSProtocolConnectionManager& aConnMan,
       
    51     										TXIMPRequestId aRequestId );
       
    52     										
       
    53     virtual ~CWithdrawPresenceGrantFromPresentityRequest();
       
    54 
       
    55 private:
       
    56 
       
    57     CWithdrawPresenceGrantFromPresentityRequest( 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 	* Send Rejecting Response of add notification Request to Network Server
       
    71 	*  @param aPresentityId: conatct id
       
    72 	*/
       
    73     void WithdrawPresenceGrantFromPresentityL(
       
    74      const MXIMPIdentity& aPresentityId);
       
    75  
       
    76 
       
    77 private: // data
       
    78 
       
    79     /**
       
    80      * Request Id from PrFw
       
    81      */
       
    82     
       
    83     TXIMPRequestId iRequestId;
       
    84  
       
    85     /**
       
    86      * Send data request to wait timer generates the id
       
    87      */
       
    88     TInt iSendId;
       
    89     
       
    90     /**
       
    91      * Oss Protocol Plugin Connection Manager
       
    92      * Not own.  *** Write "Not own" if some other class owns this object.
       
    93      */
       
    94     MOSSProtocolConnectionManager& iConnMan;
       
    95     
       
    96     };
       
    97 
       
    98 
       
    99 #endif // __CWITHDRAWPRESENCEGRANTFROMPRESENTITYREQUEST_H__
       
   100