equal
deleted
inserted
replaced
26 * Observer class to the active task object |
26 * Observer class to the active task object |
27 */ |
27 */ |
28 NONSHARABLE_CLASS( MVcxMyVideosActiveTaskObserver ) |
28 NONSHARABLE_CLASS( MVcxMyVideosActiveTaskObserver ) |
29 { |
29 { |
30 public: |
30 public: |
|
31 |
|
32 enum TStepResult |
|
33 { |
|
34 EMoreToCome, |
|
35 EDone, |
|
36 /** |
|
37 * Observer is responsible for calling Done or ContinueStepping if returning this. |
|
38 */ |
|
39 EStopStepping |
|
40 }; |
|
41 |
31 /** |
42 /** |
32 * Handle the execution of a step |
43 * Handle the execution of a step |
33 * @return ETrue if complete, EFalse if more to do |
44 * @return TStepResult |
34 */ |
45 */ |
35 virtual TBool HandleStepL() = 0; |
46 virtual TStepResult HandleStepL() = 0; |
36 /** |
47 /** |
37 * Handle the completion of the operation |
48 * Handle the completion of the operation |
38 */ |
49 */ |
39 virtual void HandleOperationCompleted( TInt aErr ) = 0; |
50 virtual void HandleOperationCompleted( TInt aErr ) = 0; |
40 }; |
51 }; |
82 * Get the command for the current task |
93 * Get the command for the current task |
83 * @return the current command |
94 * @return the current command |
84 */ |
95 */ |
85 CMPXCommand& GetCommand(); |
96 CMPXCommand& GetCommand(); |
86 |
97 |
|
98 /** |
|
99 * Get the command for the current task. |
|
100 * @return the current command, ownership does not move. |
|
101 */ |
|
102 CMPXMedia* Command(); |
|
103 |
|
104 /** |
|
105 * If observer returns EStopStepping from HandleStepL, then observer must call |
|
106 * this or ContinueStepping when sub operation is finished. |
|
107 * Can be used to run async operations. |
|
108 */ |
|
109 void Done(); |
87 |
110 |
|
111 /** |
|
112 * If observer returns EStopStepping from HandleStepL, then observer must call |
|
113 * this or Done when sub operation is finished. |
|
114 * Can be used to run async operations. |
|
115 */ |
|
116 void ContinueStepping(); |
|
117 |
88 protected: // From base class |
118 protected: // From base class |
89 |
119 |
90 /** |
120 /** |
91 * From CActive |
121 * From CActive |
92 */ |
122 */ |