1 /* |
|
2 * Copyright (c) 2010 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: Dummy implementation for details provider interface. |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef C_DUMMYDETAILSPROVIDER_H |
|
19 #define C_DUMMYDETAILSPROVIDER_H |
|
20 |
|
21 #include <e32base.h> // CBase |
|
22 #include <sifuidetailsif.h> // MSifUiDetailsIf, MSifUiListIterator, MSifUiDetailsIterator |
|
23 |
|
24 |
|
25 class CDummyDetailsProvider : public CBase, public MSifUiDetailsIf, |
|
26 public MSifUiListIterator, public MSifUiDetailsIterator |
|
27 { |
|
28 public: |
|
29 CDummyDetailsProvider( RFs& aFs ); |
|
30 ~CDummyDetailsProvider(); |
|
31 |
|
32 public: |
|
33 // from MSifUiDetailsIterator |
|
34 void SetToFirstFieldL(); |
|
35 TBool HasNextField(); |
|
36 void GetNextFieldL( TDes& aFieldName, TDes& aFieldValue ); |
|
37 |
|
38 // from MSifUiListIterator |
|
39 void SetToFirstItemL(); |
|
40 TBool HasNextItem(); |
|
41 void GetNextItemL( TDes& aItemName ); |
|
42 MSifUiDetailsIterator* DetailsIterator( const TDesC& aItemName ); |
|
43 |
|
44 // from MSifUiDetailsIf |
|
45 MSifUiDetailsIterator* AppDetailsIterator(); |
|
46 MSifUiListIterator* CertificatesListL(); |
|
47 MSifUiListIterator* DrmFilesListL(); |
|
48 void GetDriveListL( RArray<TDriveUnit>& aDriveList ); |
|
49 void GetFolderListL( const TDesC& aParent, CDesCArray& aFolderList ); |
|
50 TBool HasFolderSubfolders( const TDesC& aParent, const TDesC& aFolder ); |
|
51 |
|
52 private: // data |
|
53 RFs& iFs; |
|
54 TInt iCurrentField; |
|
55 TInt iCurrentItem; |
|
56 }; |
|
57 |
|
58 #endif // C_DUMMYDETAILSPROVIDER_H |
|
59 |
|