37 * |
37 * |
38 * Provides control for silencing the ringing tones. |
38 * Provides control for silencing the ringing tones. |
39 * Triggered when the conditions from the rule file are valid. |
39 * Triggered when the conditions from the rule file are valid. |
40 */ |
40 */ |
41 class CSilenceActionPlugIn : |
41 class CSilenceActionPlugIn : |
42 public CCFActionPlugIn, |
42 public CCFActionPlugIn, |
43 public MSilenceActionObserver |
43 public MSilenceActionObserver |
44 { |
44 { |
45 public: // Constructors and destructor |
45 public: // Constructors and destructor |
46 |
46 |
47 static CSilenceActionPlugIn* NewL(); |
47 static CSilenceActionPlugIn* NewL(); |
48 static CSilenceActionPlugIn* NewLC(); |
48 static CSilenceActionPlugIn* NewLC(); |
49 |
49 |
50 ~CSilenceActionPlugIn(); |
50 ~CSilenceActionPlugIn(); |
51 |
51 |
52 public: // From CCFActionPlugIn |
52 public: // From CCFActionPlugIn |
53 |
53 |
54 // @see CCFActionPlugIn |
54 // @see CCFActionPlugIn |
55 void InitializeL(); |
55 void InitializeL(); |
56 |
56 |
57 // @see CCFActionPlugIn |
57 // @see CCFActionPlugIn |
58 TExecutionTime ExecuteL( |
58 TExecutionTime ExecuteL( |
59 CCFActionIndication* aActionIndication ); |
59 CCFActionIndication* aActionIndication ); |
67 private: // From MSilenceActionObserver |
67 private: // From MSilenceActionObserver |
68 |
68 |
69 // @see MSilenceActionObserver |
69 // @see MSilenceActionObserver |
70 void MuteActionCompleted(); |
70 void MuteActionCompleted(); |
71 |
71 |
72 protected: |
72 protected: |
73 |
73 |
74 // C++ constrcutor |
74 // C++ constrcutor |
75 CSilenceActionPlugIn(); |
75 CSilenceActionPlugIn(); |
76 |
76 |
77 private: // New functions |
77 private: // New functions |
78 |
78 |
79 void DoCancel(); |
79 void DoCancel(); |
80 |
80 |
81 void RunL(); |
81 void RunL(); |
82 |
82 |
83 private: // Data |
83 private: // Data |
84 |
84 |
85 // Silence action. |
85 // Silence action. |
86 CSilenceAction* iSilence; |
86 CSilenceAction* iSilence; |