1 /* |
|
2 * Copyright (c) 2005-2006 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: This is the main application implementation of default app server. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #include "das_app.h" |
|
20 #include "das_doc.h" |
|
21 #include "das_server.h" |
|
22 |
|
23 // --------------------------------------------------------------------------- |
|
24 // Return the UID for the CSoundApplication application |
|
25 // --------------------------------------------------------------------------- |
|
26 // |
|
27 TUid CDefaultAppApplication::AppDllUid() const |
|
28 { |
|
29 return KUidDefaultAppServer; |
|
30 } |
|
31 |
|
32 // --------------------------------------------------------------------------- |
|
33 // Default constructor |
|
34 // --------------------------------------------------------------------------- |
|
35 // |
|
36 CDefaultAppApplication::CDefaultAppApplication(void) : iDocument(NULL), iServer(NULL) |
|
37 {} |
|
38 |
|
39 // --------------------------------------------------------------------------- |
|
40 // Create an CDefaultAppDocument document, and return a pointer to it |
|
41 // --------------------------------------------------------------------------- |
|
42 // |
|
43 CApaDocument* CDefaultAppApplication::CreateDocumentL() |
|
44 { |
|
45 iDocument = CDefaultAppDocument::NewL(*this); |
|
46 return (static_cast<CApaDocument*>(iDocument)); |
|
47 } |
|
48 |
|
49 // --------------------------------------------------------------------------- |
|
50 // Simple function to return a server object |
|
51 // --------------------------------------------------------------------------- |
|
52 // |
|
53 void CDefaultAppApplication::NewAppServerL(CApaAppServer*& aAppServer) |
|
54 { |
|
55 aAppServer = iServer = CDefaultAppServer::NewL(this); |
|
56 } |
|
57 |
|
58 // End of File |
|