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 "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 |
#ifndef __TOOLSSTARTERAUTOLAUNCH_H
|
|
19 |
#define __TOOLSSTARTERAUTOLAUNCH_H
|
|
20 |
|
|
21 |
|
|
22 |
// INCLUDES
|
|
23 |
#include <apmrec.h>
|
|
24 |
#include <e32std.h>
|
|
25 |
|
|
26 |
// CONSTANTS
|
|
27 |
|
|
28 |
// MACROS
|
|
29 |
|
|
30 |
// DATA TYPES
|
|
31 |
|
|
32 |
// FUNCTION PROTOTYPES
|
|
33 |
|
|
34 |
// FORWARD DECLARATIONS
|
|
35 |
|
|
36 |
// CLASS DECLARATION
|
|
37 |
|
|
38 |
/**
|
|
39 |
* Implements CToolsStarterAutoLaunch
|
|
40 |
*/
|
|
41 |
class CToolsStarterAutoLaunch : public CApaDataRecognizerType
|
|
42 |
{
|
|
43 |
public: // new functions
|
|
44 |
static CApaDataRecognizerType* CreateRecognizerL();
|
|
45 |
CToolsStarterAutoLaunch();
|
|
46 |
static void CreateAutoStartThreadL();
|
|
47 |
static TInt StartAppThreadFunction( TAny* aParam );
|
|
48 |
|
|
49 |
public: // from CApaDataRecognizerType
|
|
50 |
TUint PreferredBufSize();
|
|
51 |
TDataType SupportedDataTypeL( TInt aIndex ) const;
|
|
52 |
|
|
53 |
private: // from CApaDataRecognizerType
|
|
54 |
void DoRecognizeL( const TDesC& aName, const TDesC8& aBuffer );
|
|
55 |
};
|
|
56 |
|
|
57 |
|
|
58 |
class CToolsStarterLauncher : public CBase
|
|
59 |
{
|
|
60 |
public:
|
|
61 |
static CToolsStarterLauncher* NewL();
|
|
62 |
~CToolsStarterLauncher();
|
|
63 |
|
|
64 |
private:
|
|
65 |
CToolsStarterLauncher();
|
|
66 |
void ConstructL();
|
|
67 |
|
|
68 |
public:
|
|
69 |
void StartServer();
|
|
70 |
void WaitForUiServices();
|
|
71 |
|
|
72 |
};
|
|
73 |
|
|
74 |
#endif // __TOOLSSTARTERAUTOLAUNCH_H
|
|
75 |
|
|
76 |
// End of File
|