devicesrv_plat/accessory_api/inc/AccessoryServer.h
changeset 0 4e1aa6a622a0
equal deleted inserted replaced
-1:000000000000 0:4e1aa6a622a0
       
     1 /*
       
     2 * Copyright (c) 2002-2004 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: ?Description
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef RACCESSORYSERVER_H
       
    20 #define RACCESSORYSERVER_H
       
    21 
       
    22 //  INCLUDES
       
    23 #include <e32std.h>
       
    24 
       
    25 
       
    26 // CLASS DECLARATION
       
    27 
       
    28 /**
       
    29 *  RAccessoryServer is a session class for The Accessory Server.
       
    30 *
       
    31 *  This class is not intended for user derivation.
       
    32 *
       
    33 *  @lib AccClient.lib
       
    34 *  @since S60 3.1
       
    35 */
       
    36 class RAccessoryServer : public RSessionBase
       
    37     {
       
    38     public:
       
    39 
       
    40         /**
       
    41         * C++ default constructor.
       
    42         */
       
    43         IMPORT_C RAccessoryServer();
       
    44 
       
    45     public:
       
    46 
       
    47         /**
       
    48         * Creates a session with a server.
       
    49         * RAccessoryServer does not allowe more that a single connection
       
    50         * to the Accessory Server per client thread.
       
    51         *
       
    52         * @since S60 3.1
       
    53         * @return KErrNone if successful, system-wide error code if failed.
       
    54         *         Specifically:
       
    55         *         KErrNotFound, if Server is not running
       
    56         *         KErrAlreadyExists, if connection allready exist
       
    57         */
       
    58         IMPORT_C TInt Connect();
       
    59 
       
    60         /**
       
    61         * Closes a session with a server.
       
    62         * All the related sub-sessions must be closed before closing the session.
       
    63         *
       
    64         * @since S60 3.1
       
    65         * @return void
       
    66         */
       
    67         IMPORT_C void Disconnect();
       
    68 
       
    69         /**
       
    70         * Get version information about the server.
       
    71         *
       
    72         * @since S60 3.1
       
    73         * @return Version information about the server
       
    74         */
       
    75         IMPORT_C TVersion Version() const;
       
    76 
       
    77     };
       
    78 
       
    79 #endif      // RACCESSORYSERVER_H
       
    80 
       
    81 // End of File
       
    82