1 /* |
|
2 * Copyright (c) 2007 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: Main application server class.* |
|
15 */ |
|
16 |
|
17 |
|
18 // INCLUDE FILES |
|
19 #include "CamServer.h" |
|
20 #include <e32cmn.h> |
|
21 #include <barsread2.h> |
|
22 |
|
23 #include <NewFileService.hrh> |
|
24 #include <NewFileServiceDefs.h> |
|
25 #include "CamNewFileService.h" |
|
26 |
|
27 #include "CamUtility.h" |
|
28 |
|
29 |
|
30 // ================= MEMBER FUNCTIONS ======================= |
|
31 |
|
32 // --------------------------------------------------------------------------- |
|
33 // CCamAppServer::CreateServiceL |
|
34 // Creates new file service object. |
|
35 // --------------------------------------------------------------------------- |
|
36 // |
|
37 CApaAppServiceBase* CCamAppServer::CreateServiceL(TUid aServiceType) const |
|
38 { |
|
39 if ( aServiceType == TUid::Uid( NEWSERVICEUID ) )// Service UID |
|
40 { |
|
41 PRINT( _L( "Camera: CCamAppServer:CreateServiceL()" ) ); |
|
42 CCamNewFileService* service = CCamNewFileService::NewL(); |
|
43 iNewFileServiceObserver = service; |
|
44 return service; |
|
45 } |
|
46 else |
|
47 { |
|
48 return CAknAppServer::CreateServiceL(aServiceType); |
|
49 } |
|
50 } |
|
51 |
|
52 // --------------------------------------------------------------------------- |
|
53 // CCamAppServer::NewFileServiceObserver |
|
54 // Returns pointer to new file sevice object. |
|
55 // --------------------------------------------------------------------------- |
|
56 // |
|
57 MNewFileServiceObserver* CCamAppServer::NewFileServiceObserver() const |
|
58 { |
|
59 return iNewFileServiceObserver; |
|
60 } |
|
61 |
|
62 // End of File |
|
63 |
|