equal
deleted
inserted
replaced
33 // Harvester includes |
33 // Harvester includes |
34 #include "mpxharvestercommon.h" |
34 #include "mpxharvestercommon.h" |
35 #include "mpxharvesterengine.h" |
35 #include "mpxharvesterengine.h" |
36 #include "mpxfsformatmonitor.h" |
36 #include "mpxfsformatmonitor.h" |
37 #include "mpxmediaremovalmonitor.h" |
37 #include "mpxmediaremovalmonitor.h" |
38 #include "mpxusbeventhandler.h" |
38 #include "mpxconnectioneventhandler.h" |
39 #include "mpxharvesterfilehandler.h" |
39 #include "mpxharvesterfilehandler.h" |
40 #include "mpxharvesterengineobserver.h" |
40 #include "mpxharvesterengineobserver.h" |
41 #include "mpxhvsmsg.h" |
41 #include "mpxhvsmsg.h" |
42 |
42 |
43 // ======== MEMBER FUNCTIONS ======== |
43 // ======== MEMBER FUNCTIONS ======== |
58 { |
58 { |
59 MPX_DEBUG1("CMPXHarvesterEngine::~CMPXHarvesterEngine <---"); |
59 MPX_DEBUG1("CMPXHarvesterEngine::~CMPXHarvesterEngine <---"); |
60 |
60 |
61 delete iFormatMonitor; |
61 delete iFormatMonitor; |
62 delete iMediaRemovalMonitor; |
62 delete iMediaRemovalMonitor; |
63 delete iUSBMonitor; |
63 delete iConnectionMonitor; |
64 |
64 |
65 delete iFileHandler; |
65 delete iFileHandler; |
66 iFsSession.Close(); |
66 iFsSession.Close(); |
67 |
67 |
68 if( iTaskQueue ) |
68 if( iTaskQueue ) |
99 DriveInfo::EDefaultRemovableMassStorage, |
99 DriveInfo::EDefaultRemovableMassStorage, |
100 removableDrive ) ); |
100 removableDrive ) ); |
101 iMediaRemovalMonitor = CMPXMediaRemovalMonitor::NewL( |
101 iMediaRemovalMonitor = CMPXMediaRemovalMonitor::NewL( |
102 removableDrive, iFsSession, *this ); |
102 removableDrive, iFsSession, *this ); |
103 |
103 |
104 // USB Event monitor |
104 // Connection Event monitor |
105 iUSBMonitor = CMPXUsbEventHandler::NewL( *this ); |
105 iConnectionMonitor = CMPXConnectionEventHandler::NewL( *this ); |
106 |
106 |
107 |
107 |
108 // File handler to handle file related events |
108 // File handler to handle file related events |
109 iFileHandler = CMPXHarvesterFileHandler::NewL( iFsSession ); |
109 iFileHandler = CMPXHarvesterFileHandler::NewL( iFsSession ); |
110 |
110 |
424 // Check for formatting, mtp and usb |
424 // Check for formatting, mtp and usb |
425 // No need to check for disk inserted or not because we |
425 // No need to check for disk inserted or not because we |
426 // wont be able to open the db anyways. |
426 // wont be able to open the db anyways. |
427 // |
427 // |
428 iFormatMonitor->PollStatus(); |
428 iFormatMonitor->PollStatus(); |
429 iUSBMonitor->PollStatus(); |
429 iConnectionMonitor->PollStatus(); |
430 } |
430 } |
431 |
431 |
432 // --------------------------------------------------------------------------- |
432 // --------------------------------------------------------------------------- |
433 // Handling system events |
433 // Handling system events |
434 // --------------------------------------------------------------------------- |
434 // --------------------------------------------------------------------------- |