bluetoothengine/bthid/common/inc/genericclient.h
changeset 0 f63038272f30
equal deleted inserted replaced
-1:000000000000 0:f63038272f30
       
     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:  Declares main application class.
       
    15  *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef __GENERICCLIENT_H__
       
    20 #define __GENERICCLIENT_H__
       
    21 
       
    22 #ifndef DBG
       
    23 
       
    24 #ifdef _DEBUG
       
    25 #define DBG(a) a
       
    26 #include <eikappui.h>
       
    27 #else
       
    28 #define DBG(a)
       
    29 #endif
       
    30 
       
    31 #endif
       
    32 
       
    33 #include <e32std.h>
       
    34 
       
    35 // ----------------------------------------------------------------------
       
    36 
       
    37 /*
       
    38  *  Base class for client-side sessions for all servers.
       
    39  */
       
    40 class RGenericSession : public RSessionBase
       
    41     {
       
    42 protected:
       
    43     // Create a new session with the server, creating the server if necessary
       
    44     TInt StartSession(const TDesC& aServer, const TVersion& aVersion,
       
    45             const TDesC& aFilename, const TUidType& aUid,
       
    46             TInt aAsyncMessageSlots);
       
    47 
       
    48 private:
       
    49     // Load and start the server
       
    50     TInt CreateServer(const TDesC& aServer, const TDesC& aFilename,
       
    51             const TUidType& aUid);
       
    52     };
       
    53 
       
    54 #endif  // __GENERICCLIENT_H__