imservices/ossprotocoladaptation/inc/presencepublishing/cpublishownpresencerequest.h
branchRCL_3
changeset 14 7797b2f86d2b
parent 13 b6f2a363adf7
child 16 cfe5eb8bb9ca
equal deleted inserted replaced
13:b6f2a363adf7 14:7797b2f86d2b
     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 __CPUBLISHOWNPRESENCEREQUEST_H__
       
    20 #define __CPUBLISHOWNPRESENCEREQUEST_H__
       
    21 
       
    22 
       
    23 //  INCLUDES
       
    24 #include <e32base.h>
       
    25 #include <ximpbase.h>
       
    26 
       
    27 
       
    28 // FORWARD DECLARATIONS
       
    29 class MOSSProtocolConnectionManager;
       
    30 class MPresenceInfo;
       
    31 class MPresenceBuddyInfo2;
       
    32 
       
    33 /**
       
    34  * CPublishOwnPresencerequest
       
    35  *
       
    36  * Publishes own presence 
       
    37  *
       
    38  */
       
    39  
       
    40  class CPublishOwnPresencerequest: public CActive
       
    41                                 			   
       
    42                                 			   
       
    43     {
       
    44 
       
    45 public:
       
    46 
       
    47     static CPublishOwnPresencerequest* NewL( 
       
    48     										MOSSProtocolConnectionManager& aConnMan,
       
    49     										TXIMPRequestId aRequestId );
       
    50     										
       
    51     static CPublishOwnPresencerequest* NewLC( 
       
    52     										MOSSProtocolConnectionManager& aConnMan,
       
    53     										TXIMPRequestId aRequestId );
       
    54     										
       
    55     virtual ~CPublishOwnPresencerequest();
       
    56 
       
    57 private:
       
    58 
       
    59     CPublishOwnPresencerequest( 
       
    60     										MOSSProtocolConnectionManager& aConnMan,
       
    61     										TXIMPRequestId aRequestId  );
       
    62     void ConstructL();
       
    63 
       
    64 private: // from CActive
       
    65 
       
    66     void DoCancel();
       
    67     void RunL();
       
    68     TInt RunError( TInt aError );
       
    69     
       
    70 public:
       
    71    /**
       
    72  	* CPublishOwnPresencerequest
       
    73 	*
       
    74 	* Publishes update own presence to network server
       
    75 	*
       
    76 	*/ 
       
    77    void PublishOwnPresenceL(const MPresenceInfo& aPresence);
       
    78    
       
    79  
       
    80 private: // data
       
    81 
       
    82     /**
       
    83      * Request Id from ximpfw
       
    84      */
       
    85     
       
    86     TXIMPRequestId iRequestId;
       
    87     
       
    88     /**
       
    89      * Send data request to pure data handler generates the id
       
    90      */
       
    91     TInt iSendId;
       
    92 	    
       
    93     
       
    94     /**
       
    95      * Imps Protocol Plugin Connection Manager
       
    96      * Not own.  *** Write "Not own" if some other class owns this object.
       
    97      */
       
    98     MOSSProtocolConnectionManager& iConnMan;
       
    99     
       
   100     //owns : own presence info
       
   101     MPresenceBuddyInfo2* iOwnPresenceInfo;
       
   102      
       
   103     };
       
   104 
       
   105 
       
   106 #endif // __CPUBLISHOWNPRESENCEREQUEST_H__
       
   107