equal
deleted
inserted
replaced
21 #include <mpxcollectionobserver.h> |
21 #include <mpxcollectionobserver.h> |
22 |
22 |
23 class CMPXCollectionOpenUtility; |
23 class CMPXCollectionOpenUtility; |
24 class CMPXCollectionPath; |
24 class CMPXCollectionPath; |
25 |
25 |
|
26 const TInt KIncrementalNullOffset = 0; |
26 /*! |
27 /*! |
27 \class MpMpxIsolatedCollectionHelperObserver |
28 \class MpMpxIsolatedCollectionHelperObserver |
28 \brief Observer interface for class CMpMpxIsolatedCollectionHelper |
29 \brief Observer interface for class CMpMpxIsolatedCollectionHelper |
29 |
30 |
30 This is a helper class to open an insolated collection. |
31 This is a helper class to open an insolated collection. |
33 { |
34 { |
34 public: |
35 public: |
35 |
36 |
36 virtual void HandleIsolatedOpenL( const CMPXMedia& aEntries, |
37 virtual void HandleIsolatedOpenL( const CMPXMedia& aEntries, |
37 TInt aError ) = 0; |
38 TInt aError ) = 0; |
|
39 |
|
40 virtual void HandleIsolatedOpenRestorePathL( const CMPXCollectionPath& aPath, |
|
41 TInt aError ) = 0; |
38 }; |
42 }; |
39 |
43 |
40 class CMpMpxIsolatedCollectionHelper : public CBase, |
44 class CMpMpxIsolatedCollectionHelper : public CBase, |
41 public MMPXCollectionObserver |
45 public MMPXCollectionObserver |
42 { |
46 { |
43 public: |
47 public: |
44 |
48 enum MpOpenMode{ |
|
49 DefaultMode = 0, |
|
50 RestorePathMode |
|
51 }; |
45 static CMpMpxIsolatedCollectionHelper* NewL( MMpMpxIsolatedCollectionHelperObserver* aObserver ); |
52 static CMpMpxIsolatedCollectionHelper* NewL( MMpMpxIsolatedCollectionHelperObserver* aObserver ); |
46 static CMpMpxIsolatedCollectionHelper* NewLC( MMpMpxIsolatedCollectionHelperObserver* aObserver ); |
53 static CMpMpxIsolatedCollectionHelper* NewLC( MMpMpxIsolatedCollectionHelperObserver* aObserver ); |
47 virtual ~CMpMpxIsolatedCollectionHelper(); |
54 virtual ~CMpMpxIsolatedCollectionHelper(); |
48 void OpenCollectionL( CMPXCollectionPath& aPath ); |
55 void OpenCollectionL( CMPXCollectionPath& aPath, TInt aIndex = KIncrementalNullOffset, MpOpenMode aMode = DefaultMode ); |
49 |
56 |
50 private: |
57 private: |
51 CMpMpxIsolatedCollectionHelper( MMpMpxIsolatedCollectionHelperObserver* aObserver ); |
58 CMpMpxIsolatedCollectionHelper( MMpMpxIsolatedCollectionHelperObserver* aObserver ); |
52 void ConstructL(); |
59 void ConstructL(); |
53 void HandleOpenL( const CMPXMedia& aEntries, |
60 void HandleOpenL( const CMPXMedia& aEntries, |
58 |
65 |
59 private: |
66 private: |
60 MMpMpxIsolatedCollectionHelperObserver* iObserver; |
67 MMpMpxIsolatedCollectionHelperObserver* iObserver; |
61 CMPXCollectionOpenUtility* iIncrementalOpenUtil; //owned |
68 CMPXCollectionOpenUtility* iIncrementalOpenUtil; //owned |
62 TBool iFirstIncrementalOpen; |
69 TBool iFirstIncrementalOpen; |
|
70 MpOpenMode iOpenMode; |
63 |
71 |
64 }; |
72 }; |
65 |
73 |
66 #endif // CMPMPXISOLATEDCOLLECTIONHELPER_H |
74 #endif // CMPMPXISOLATEDCOLLECTIONHELPER_H |
67 |
75 |