1 /* |
|
2 * =========================================================================== |
|
3 * Name : hgfswclient.cpp |
|
4 * Part of : Huriganes / Fast Swap Server |
|
5 * Description : Client API |
|
6 * Version : %version: 3 % |
|
7 * |
|
8 * Copyright © 2008 Nokia Corporation. |
|
9 * This material, including documentation and any related |
|
10 * computer programs, is protected by copyright controlled by |
|
11 * Nokia Corporation. All rights are reserved. Copying, |
|
12 * including reproducing, storing, adapting or translating, any |
|
13 * or all of this material requires the prior written consent of |
|
14 * Nokia Corporation. This material also contains confidential |
|
15 * information which may not be disclosed to others without the |
|
16 * prior written consent of Nokia Corporation. |
|
17 * =========================================================================== |
|
18 */ |
|
19 |
|
20 #include "hgfswclient.h" |
|
21 #include "hgfswclientimpl.h" |
|
22 |
|
23 EXPORT_C CHgFswClient* CHgFswClient::NewL() |
|
24 { |
|
25 CHgFswClient* self = NewLC(); |
|
26 CleanupStack::Pop( self ); |
|
27 return self; |
|
28 } |
|
29 |
|
30 EXPORT_C CHgFswClient* CHgFswClient::NewLC() |
|
31 { |
|
32 CHgFswClient* self = new ( ELeave ) CHgFswClient; |
|
33 CleanupStack::PushL( self ); |
|
34 self->ConstructL(); |
|
35 return self; |
|
36 } |
|
37 |
|
38 CHgFswClient::CHgFswClient() |
|
39 { |
|
40 } |
|
41 |
|
42 CHgFswClient::~CHgFswClient() |
|
43 { |
|
44 delete iImpl; |
|
45 } |
|
46 |
|
47 void CHgFswClient::ConstructL() |
|
48 { |
|
49 iImpl = CHgFswClientImpl::NewL(); |
|
50 } |
|
51 |
|
52 EXPORT_C void CHgFswClient::GetContentL( RHgFswArray& aDst ) |
|
53 { |
|
54 iImpl->GetContentL( aDst ); |
|
55 } |
|
56 |
|
57 EXPORT_C void CHgFswClient::Subscribe( MHgFswObserver& aObserver ) |
|
58 { |
|
59 iImpl->Subscribe( aObserver ); |
|
60 } |
|
61 |
|
62 EXPORT_C void CHgFswClient::CancelSubscribe() |
|
63 { |
|
64 iImpl->CancelSubscribe(); |
|
65 } |
|
66 |
|
67 EXPORT_C void CHgFswClient::CloseApp( TInt aWgId ) |
|
68 { |
|
69 iImpl->CloseApp( aWgId ); |
|
70 } |
|
71 |
|
72 EXPORT_C void CHgFswClient::SwitchToApp( TInt aWgId ) |
|
73 { |
|
74 iImpl->SwitchToApp( aWgId ); |
|
75 } |
|
76 |
|
77 EXPORT_C TUid CHgFswClient::ForegroundAppUid( THgFswFgAppType aType ) |
|
78 { |
|
79 return iImpl->ForegroundAppUid( aType ); |
|
80 } |
|
81 |
|
82 |
|
83 // end of file |
|