0
|
1 |
/*
|
|
2 |
* Copyright (c) 2009 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 the License "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:
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
|
18 |
|
|
19 |
#ifndef RUSBPNCLIENT_H
|
|
20 |
#define RUSBPNCLIENT_H
|
|
21 |
|
|
22 |
// INCLUDES
|
|
23 |
#include <e32std.h>
|
|
24 |
|
|
25 |
// CONSTANTS
|
|
26 |
// MACROS
|
|
27 |
// DATA TYPES
|
|
28 |
// FUNCTION PROTOTYPES
|
|
29 |
// FORWARD DECLARATIONS
|
|
30 |
// CLASS DECLARATION
|
|
31 |
|
|
32 |
/**
|
|
33 |
* Client API for USB Phonet Link server.
|
|
34 |
*
|
|
35 |
* @lib usbpnclient.lib
|
|
36 |
* @since
|
|
37 |
*/
|
|
38 |
class RUsbPnClient : public RSessionBase
|
|
39 |
{
|
|
40 |
public: // Constructors and destructor
|
|
41 |
|
|
42 |
/**
|
|
43 |
* C++ default constructor.
|
|
44 |
*/
|
|
45 |
IMPORT_C RUsbPnClient();
|
|
46 |
|
|
47 |
public: // New functions
|
|
48 |
|
|
49 |
/**
|
|
50 |
* Connect to USB Phonet Link server.
|
|
51 |
* Server starts if first.
|
|
52 |
* @since
|
|
53 |
* @param
|
|
54 |
* @return
|
|
55 |
*/
|
|
56 |
IMPORT_C void ConnectL();
|
|
57 |
|
|
58 |
/**
|
|
59 |
* Sends message to server so it can release interface before class controller Stop() can continue.
|
|
60 |
* Closes also the handle so rest of the server is destroyed if last reference.
|
|
61 |
* @since
|
|
62 |
* @param
|
|
63 |
* @return
|
|
64 |
*/
|
|
65 |
IMPORT_C void Detach();
|
|
66 |
|
|
67 |
|
|
68 |
};
|
|
69 |
|
|
70 |
#endif // RUSBPNCLIENT_H
|
|
71 |
|
|
72 |
// End of File
|