williamr@2: /* williamr@2: * Copyright (c) 2006 Nokia Corporation and/or its subsidiary(-ies). williamr@2: * All rights reserved. williamr@2: * This component and the accompanying materials are made available williamr@4: * under the terms of "Eclipse Public License v1.0" williamr@2: * which accompanies this distribution, and is available williamr@4: * at the URL "http://www.eclipse.org/legal/epl-v10.html". williamr@2: * williamr@2: * Initial Contributors: williamr@2: * Nokia Corporation - initial contribution. williamr@2: * williamr@2: * Contributors: williamr@2: * williamr@2: * Description: location triggering server client library williamr@2: * williamr@2: */ williamr@2: williamr@2: williamr@2: williamr@2: #ifndef LBTSERVER_H williamr@2: #define LBTSERVER_H williamr@2: williamr@2: williamr@2: #include williamr@2: williamr@2: /** williamr@2: * A handle to Location Triggering Server session. williamr@2: * williamr@2: * This is generally the first interface class used by all client applications. williamr@2: * It is used to make the primary connection to the Location Triggering Server. williamr@2: * After the primary connection has been established, its handle is passed as a williamr@2: * parameter of the Open methods of @p RLbt to create a subsession. williamr@2: * williamr@2: * @lib lbt.lib williamr@2: * williamr@2: * @since S60 5.1 williamr@2: */ williamr@2: class RLbtServer : public RSessionBase williamr@2: { williamr@2: public: williamr@2: /** williamr@2: * Constructor for RLbtServer williamr@2: */ williamr@2: IMPORT_C RLbtServer(); williamr@2: williamr@2: /** williamr@2: * Creates a session with the Location Triggering Server. williamr@2: * This method must be called before any subsession can be opened. williamr@2: * @see RLbt. williamr@2: * williamr@2: * @panic ELbtServerHandleNotClosed Try to connect using an already opened handle. williamr@2: * williamr@2: * @return KErrNone, if successful. KErrNotSupported if Location Triggers williamr@2: * Server is not present in the system. Otherwise one of the other standard williamr@2: * Symbian error code (for example KErrNoMemory, KErrServerBusy, etc. ) williamr@2: * is returned. williamr@2: */ williamr@2: IMPORT_C TInt Connect(); williamr@2: williamr@2: /** williamr@2: * Closes a session with the Location Triggering Server. williamr@2: * Before the connection to Location Triggering Server is closed, the williamr@2: * client application must ensure that all subsessions is closed. williamr@2: */ williamr@2: IMPORT_C void Close(); williamr@2: williamr@2: /** williamr@2: * Obtains the client side version number of Location Triggering Server. williamr@2: * williamr@2: * @return The client side version number. williamr@2: */ williamr@2: IMPORT_C TVersion Version() const; williamr@2: williamr@2: /** williamr@2: * Symbian 2nd phase constructor. williamr@2: */ williamr@2: void ConstructL(); williamr@2: williamr@2: private: // data williamr@2: /** williamr@2: * Unused variable for future expansion. williamr@2: */ williamr@2: TAny* iReserved; williamr@2: }; williamr@2: williamr@2: williamr@2: #endif //LBTSERVER_H