devicesrv_plat/accessory_api/inc/AccessoryServer.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Fri, 11 Jun 2010 14:56:08 +0300
changeset 35 f7565e9c9ce8
parent 0 4e1aa6a622a0
permissions -rw-r--r--
Revision: 201023 Kit: 2010123

/*
* Copyright (c) 2002-2004 Nokia Corporation and/or its subsidiary(-ies). 
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description: ?Description
*
*/


#ifndef RACCESSORYSERVER_H
#define RACCESSORYSERVER_H

//  INCLUDES
#include <e32std.h>


// CLASS DECLARATION

/**
*  RAccessoryServer is a session class for The Accessory Server.
*
*  This class is not intended for user derivation.
*
*  @lib AccClient.lib
*  @since S60 3.1
*/
class RAccessoryServer : public RSessionBase
    {
    public:

        /**
        * C++ default constructor.
        */
        IMPORT_C RAccessoryServer();

    public:

        /**
        * Creates a session with a server.
        * RAccessoryServer does not allowe more that a single connection
        * to the Accessory Server per client thread.
        *
        * @since S60 3.1
        * @return KErrNone if successful, system-wide error code if failed.
        *         Specifically:
        *         KErrNotFound, if Server is not running
        *         KErrAlreadyExists, if connection allready exist
        */
        IMPORT_C TInt Connect();

        /**
        * Closes a session with a server.
        * All the related sub-sessions must be closed before closing the session.
        *
        * @since S60 3.1
        * @return void
        */
        IMPORT_C void Disconnect();

        /**
        * Get version information about the server.
        *
        * @since S60 3.1
        * @return Version information about the server
        */
        IMPORT_C TVersion Version() const;

    };

#endif      // RACCESSORYSERVER_H

// End of File