|
1 /* |
|
2 * Copyright (c) 2002-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: Phonebook 2 application server. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #include "CPbk2ServerApp.h" |
|
20 |
|
21 // Phonebook 2 |
|
22 #include "CPbk2AppService.h" |
|
23 #include <Pbk2InternalUID.h> |
|
24 |
|
25 // -------------------------------------------------------------------------- |
|
26 // CPbk2ServerApp::NewL |
|
27 // -------------------------------------------------------------------------- |
|
28 // |
|
29 CPbk2ServerApp* CPbk2ServerApp::NewL() |
|
30 { |
|
31 return new ( ELeave ) CPbk2ServerApp; |
|
32 } |
|
33 |
|
34 // -------------------------------------------------------------------------- |
|
35 // CPbk2ServerApp::CreateServiceL |
|
36 // -------------------------------------------------------------------------- |
|
37 // |
|
38 CApaAppServiceBase* CPbk2ServerApp::CreateServiceL( TUid aServiceType ) const |
|
39 { |
|
40 CApaAppServiceBase* result = NULL; |
|
41 |
|
42 if ( aServiceType == TUid::Uid( KPbk2UIService ) ) |
|
43 { |
|
44 result = CPbk2AppService::NewL(); |
|
45 } |
|
46 else |
|
47 { |
|
48 result = CAknAppServer::CreateServiceL( aServiceType ); |
|
49 } |
|
50 |
|
51 return result; |
|
52 } |
|
53 |
|
54 // -------------------------------------------------------------------------- |
|
55 // CPbk2ServerApp::CreateServiceSecurityCheckL |
|
56 // Security check performed when client connects to the service. |
|
57 // -------------------------------------------------------------------------- |
|
58 // |
|
59 CPolicyServer::TCustomResult CPbk2ServerApp::CreateServiceSecurityCheckL |
|
60 ( TUid aServiceType, const RMessage2& aMsg, TInt& aAction, |
|
61 TSecurityInfo& aMissing ) |
|
62 { |
|
63 // No checks at connection time, forward to base class |
|
64 return CAknAppServer::CreateServiceSecurityCheckL |
|
65 ( aServiceType, aMsg, aAction, aMissing ); |
|
66 } |
|
67 |
|
68 // -------------------------------------------------------------------------- |
|
69 // CPbk2ServerApp::HandleAllClientsClosed |
|
70 // -------------------------------------------------------------------------- |
|
71 // |
|
72 void CPbk2ServerApp::HandleAllClientsClosed() |
|
73 { |
|
74 // For now |
|
75 CAknAppServer::HandleAllClientsClosed(); |
|
76 } |
|
77 |
|
78 // End of File |