equal
deleted
inserted
replaced
22 #include <eikbtgpc.h> // CEikButtonGroupContainer |
22 #include <eikbtgpc.h> // CEikButtonGroupContainer |
23 #include <avkon.hrh> |
23 #include <avkon.hrh> |
24 |
24 |
25 #include "CAknFileSelectionModel.h" |
25 #include "CAknFileSelectionModel.h" |
26 #include "MAknFileSelectionObserver.h" |
26 #include "MAknFileSelectionObserver.h" |
|
27 #include "CAknCommonDialogsPopupList.h" |
|
28 #include "CAknCFDFileSystemEvent.h" |
27 #include "AknCFDUtility.h" |
29 #include "AknCFDUtility.h" |
28 |
30 |
29 |
31 |
30 |
32 |
31 // ============================ MEMBER FUNCTIONS =============================== |
33 // ============================ MEMBER FUNCTIONS =============================== |
91 } |
93 } |
92 |
94 |
93 // Destructor |
95 // Destructor |
94 CAknFileSelectionEventHandler::~CAknFileSelectionEventHandler() |
96 CAknFileSelectionEventHandler::~CAknFileSelectionEventHandler() |
95 { |
97 { |
|
98 if(iFSObserver) |
|
99 { |
|
100 iFSObserver->Cancel(); |
|
101 delete iFSObserver; |
|
102 iFSObserver = NULL; |
|
103 } |
96 } |
104 } |
97 |
105 |
98 |
106 |
99 // ----------------------------------------------------------------------------- |
107 // ----------------------------------------------------------------------------- |
100 // CAknFileSelectionEventHandler::PushIndicesL |
108 // CAknFileSelectionEventHandler::PushIndicesL |
382 } |
390 } |
383 } |
391 } |
384 return returnType; |
392 return returnType; |
385 } |
393 } |
386 |
394 |
|
395 void CAknFileSelectionEventHandler::StartFileSystemNotifierL(CAknCommonDialogsPopupList* aPopupList) |
|
396 { |
|
397 iPopupList = aPopupList; |
|
398 TPath path; |
|
399 iModel->GetCurrentPath(path); |
|
400 iFSObserver = CAknCFDFileSystemEvent::NewL(iCoeEnv->FsSession(),*this, |
|
401 ENotifyEntry,path); |
|
402 } |
|
403 void CAknFileSelectionEventHandler::StopFileSystemNotifier() |
|
404 { |
|
405 iFSObserver->Cancel(); |
|
406 } |
|
407 void CAknFileSelectionEventHandler::NotifyFileSystemChangedL() |
|
408 { |
|
409 iModel->UpdateItemListL(); |
|
410 iPopupList->HandleFileSystemChangedL(iModel); |
|
411 } |
387 // End of File |
412 // End of File |