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 CUSBPNSCHEDULER_H
|
|
20 |
#define CUSBPNSCHEDULER_H
|
|
21 |
|
|
22 |
// INCLUDES
|
|
23 |
#include <e32base.h> // For CActiveScheduler
|
|
24 |
|
|
25 |
// CONSTANTS
|
|
26 |
// MACROS
|
|
27 |
// DATA TYPES
|
|
28 |
// FUNCTION PROTOTYPES
|
|
29 |
// FORWARD DECLARATIONS
|
|
30 |
class CUsbPnServer;
|
|
31 |
|
|
32 |
// CLASS DECLARATION
|
|
33 |
|
|
34 |
/**
|
|
35 |
* Server's scheduler.
|
|
36 |
*/
|
|
37 |
class CUsbPnScheduler : public CActiveScheduler
|
|
38 |
{
|
|
39 |
public: // Constructors and destructor
|
|
40 |
|
|
41 |
/**
|
|
42 |
* Destructor.
|
|
43 |
*/
|
|
44 |
~CUsbPnScheduler();
|
|
45 |
|
|
46 |
public: // New functions
|
|
47 |
|
|
48 |
/**
|
|
49 |
* Starts USB Phonet Link server thread and the server itself.
|
|
50 |
* @since Series ?XX ?SeriesXX_version
|
|
51 |
* @param
|
|
52 |
* @return Starting status
|
|
53 |
*/
|
|
54 |
IMPORT_C static TInt ThreadStart();
|
|
55 |
|
|
56 |
|
|
57 |
private:
|
|
58 |
|
|
59 |
/**
|
|
60 |
* This function creates the active scheduler for USB Phonet Link server
|
|
61 |
* thread and USB Phonet Link server and starts them.
|
|
62 |
* @return None
|
|
63 |
*/
|
|
64 |
static void ConstructL();
|
|
65 |
|
|
66 |
|
|
67 |
private: // Data
|
|
68 |
|
|
69 |
// Reserved pointer for future extension
|
|
70 |
CUsbPnServer* iServer;
|
|
71 |
|
|
72 |
};
|
|
73 |
|
|
74 |
#endif // CUSBPNSCHEDULER_H
|
|
75 |
|
|
76 |
// End of File
|