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
|
1
|
5 |
* under the terms of the License "Eclipse Public License v1.0"
|
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: Implementation of the main application class.
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
|
18 |
|
|
19 |
#include "hapticsexampledocument.h"
|
|
20 |
#include "hapticsexampleapplication.h"
|
|
21 |
|
|
22 |
|
|
23 |
/* UID for the application;
|
|
24 |
* this should correspond to the uid defined in the mmp file
|
|
25 |
*/
|
1
|
26 |
const TUid KUidHapticsExampleApp = { 0xE0007DFE };
|
0
|
27 |
|
|
28 |
|
|
29 |
// ---------------------------------------------------------------------------
|
|
30 |
// From class CApaApplication.
|
|
31 |
// Returns application UID
|
|
32 |
// ---------------------------------------------------------------------------
|
|
33 |
//
|
|
34 |
TUid CHapticsExampleApplication::AppDllUid() const
|
|
35 |
{
|
|
36 |
// Return the UID for the Haptics Example application
|
|
37 |
return KUidHapticsExampleApp;
|
|
38 |
}
|
|
39 |
|
|
40 |
|
|
41 |
// ---------------------------------------------------------------------------
|
|
42 |
// From class CApaApplication.
|
|
43 |
// Creates CApaDocument object
|
|
44 |
// ---------------------------------------------------------------------------
|
|
45 |
//
|
|
46 |
CApaDocument* CHapticsExampleApplication::CreateDocumentL()
|
|
47 |
{
|
|
48 |
// Create an HapticsExample document, and return a pointer to it
|
|
49 |
return new ( ELeave ) CHapticsExampleDocument( *this );
|
|
50 |
}
|
|
51 |
|
|
52 |
// End of File
|