|
1 /* |
|
2 * Copyright (c) 2008 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: Client API, private implementation |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef TSFSWCLIENTIMPL_H |
|
20 #define TSFSWCLIENTIMPL_H |
|
21 |
|
22 #include <e32std.h> |
|
23 #include "tsfswentry.h" |
|
24 |
|
25 class MTsFswObserver; |
|
26 |
|
27 NONSHARABLE_CLASS( CTsFswClientImpl ) : public CActive |
|
28 { |
|
29 public: |
|
30 static CTsFswClientImpl* NewL(); |
|
31 static CTsFswClientImpl* NewLC(); |
|
32 ~CTsFswClientImpl(); |
|
33 |
|
34 void GetContentL( RTsFswArray& aDst ); |
|
35 |
|
36 void Subscribe( MTsFswObserver& aObserver ); |
|
37 void CancelSubscribe(); |
|
38 |
|
39 void CloseApp( TInt aWgId ); |
|
40 void SwitchToApp( TInt aWgId ); |
|
41 |
|
42 TUid ForegroundAppUid( TInt aType ); |
|
43 |
|
44 private: |
|
45 void RunL(); |
|
46 void DoCancel(); |
|
47 |
|
48 private: |
|
49 CTsFswClientImpl(); |
|
50 void ConstructL(); |
|
51 |
|
52 NONSHARABLE_CLASS( RTsFswClient ) : public RSessionBase |
|
53 { |
|
54 public: |
|
55 TInt Connect(); |
|
56 void Subscribe( TRequestStatus& aStatus ); |
|
57 void CancelSubscribe(); |
|
58 void GetContentL( RTsFswArray& aDst ); |
|
59 void CloseApp( TInt aWgId ); |
|
60 void SwitchToApp( TInt aWgId ); |
|
61 TUid ForegroundAppUid( TInt aType ); |
|
62 }; |
|
63 RTsFswClient iClient; |
|
64 |
|
65 MTsFswObserver* iObserver; // not own |
|
66 }; |
|
67 |
|
68 #endif |