PECengine/PresenceServer2/ClientInc/RPEngManagerClient.h
branchRCL_3
changeset 13 a941bc465d9f
parent 0 094583676ce7
equal deleted inserted replaced
12:6ca72c0fe49a 13:a941bc465d9f
       
     1 /*
       
     2 * Copyright (c) 2002 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:  Presence server main client
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef __RPENGMANAGERCLIENT_H__
       
    20 #define __RPENGMANAGERCLIENT_H__
       
    21 
       
    22 //  INCLUDES
       
    23 #include <e32def.h>
       
    24 #include <e32base.h>
       
    25 #include "PEngPresenceEngineConsts2.h"
       
    26 
       
    27 // CLASS DECLARATION
       
    28 /**
       
    29  *  Main client of the  Presence server
       
    30  *  This client is used to establise main session to the
       
    31  *  Presence server and then passed when new subsession needs to be
       
    32  *  connected
       
    33  *
       
    34  *  @lib PEngClient2
       
    35  *  @since 3.0
       
    36  */
       
    37 class RPEngManagerClient : public RSessionBase
       
    38     {
       
    39     public:		// Constructors and destructors
       
    40         /**
       
    41          * Destructor.
       
    42          */
       
    43         IMPORT_C	~RPEngManagerClient();
       
    44 
       
    45         /**
       
    46          * C++ default constructor.
       
    47          */
       
    48         IMPORT_C	RPEngManagerClient();
       
    49 
       
    50     public:		// Connect close operations
       
    51 
       
    52         /**
       
    53           *  Openes new handle to the Presence server,
       
    54           *	 if server is not running it is started
       
    55           *
       
    56           *	 @since 3.0
       
    57           */
       
    58         IMPORT_C TInt Connect();
       
    59 
       
    60         /**
       
    61          *	Close connection to the Presence server
       
    62          *
       
    63          *	@since 3.0
       
    64          */
       
    65         IMPORT_C void Close();
       
    66 
       
    67     private:	// New methods
       
    68 
       
    69         /**
       
    70          *	Get version
       
    71          *
       
    72          *	@since 3.0
       
    73          *  @return version
       
    74          */
       
    75         TVersion Version() const;
       
    76 
       
    77     private:	// Data
       
    78 
       
    79         /// OWN: Flag if client is connected to server
       
    80         TBool			iConnected;
       
    81     };
       
    82 
       
    83 #endif      //  __RPENGMANAGERCLIENT_H__