|
creaImageIO_lib
|
#include <creaImageIOListener.h>


Public Types | |
| typedef boost::signal< void(bool)> | MountingSignalType |
| Related with signals. More... | |
| typedef MountingSignalType::slot_function_type | MountingCallbackType |
Public Member Functions | |
| Listener () | |
| Ctors. More... | |
| virtual | ~Listener () |
| Dtor. More... | |
| void * | Entry () |
| Thread method that is executed once create is called. More... | |
| void | OnExit () |
| Thread method called upon exiting. More... | |
| void | SetAddFilesState (bool addFiles) |
| Sets the new state of adding files. More... | |
| void | SetRemoveFilesState (bool removeFiles) |
| Sets the new state of removing files. More... | |
| void | SetMonitoredDrive (const std::string &dr) |
| Sets the new monitored drive. More... | |
| void | GetMonitoredDrive (std::string &drive) |
| Puts the name of the monitored drive in the given string. More... | |
| void | ConnectObserver (MountingCallbackType callback) |
| void | SendSignal (bool ivalid) |
| Sends a boost::signal to alert that the drive has changed its state (mounted/unmounted) More... | |
Private Attributes | |
| boost::mutex | mMutex |
| The mutex. More... | |
| bool | mAddFiles |
| Boolean that declares if the files that are read on CD mount should be added. More... | |
| bool | mRemoveFiles |
| Boolean that declares if, on CD unmount, the files that were in the drive should be removed. More... | |
| bool | mMounted |
| Boolean that declares if a unit has been mounted. More... | |
| std::string | mDrive |
| The monitored drive. More... | |
| MountingSignalType | mMountingSignal |
| The validation signal. More... | |
Definition at line 44 of file creaImageIOListener.h.
| typedef MountingSignalType::slot_function_type creaImageIO::Listener::MountingCallbackType |
Definition at line 67 of file creaImageIOListener.h.
| typedef boost::signal<void (bool)> creaImageIO::Listener::MountingSignalType |
Related with signals.
Definition at line 66 of file creaImageIOListener.h.
| creaImageIO::Listener::Listener | ( | ) |
|
virtual |
Dtor.
Destructor.
Definition at line 60 of file creaImageIOListener.cpp.
References GimmickDebugMessage.
| void creaImageIO::Listener::ConnectObserver | ( | MountingCallbackType | callback | ) |
Definition at line 117 of file creaImageIOListener.cpp.
| void * creaImageIO::Listener::Entry | ( | ) |
Thread method that is executed once create is called.
Definition at line 68 of file creaImageIOListener.cpp.
References GimmickDebugMessage.
|
inline |
Puts the name of the monitored drive in the given string.
Definition at line 62 of file creaImageIOListener.h.
References mDrive.
Referenced by creaImageIO::WxGimmickView::OnDriveMount().

| void creaImageIO::Listener::OnExit | ( | ) |
Thread method called upon exiting.
Definition at line 111 of file creaImageIOListener.cpp.
References GimmickDebugMessage.
| void creaImageIO::Listener::SendSignal | ( | bool | ivalid | ) |
Sends a boost::signal to alert that the drive has changed its state (mounted/unmounted)
Definition at line 123 of file creaImageIOListener.cpp.
|
inline |
Sets the new state of adding files.
Definition at line 56 of file creaImageIOListener.h.
References mAddFiles, and mMutex.
Referenced by creaImageIO::WxGimmickView::OnListenerCallback().

|
inline |
Sets the new monitored drive.
Definition at line 60 of file creaImageIOListener.h.
References mDrive, and mMutex.
Referenced by creaImageIO::WxGimmickView::OnListenerCallback().

|
inline |
Sets the new state of removing files.
Definition at line 58 of file creaImageIOListener.h.
References mMutex, and mRemoveFiles.
Referenced by creaImageIO::WxGimmickView::OnListenerCallback().

|
private |
Boolean that declares if the files that are read on CD mount should be added.
Definition at line 82 of file creaImageIOListener.h.
Referenced by SetAddFilesState().
|
private |
The monitored drive.
Definition at line 88 of file creaImageIOListener.h.
Referenced by GetMonitoredDrive(), and SetMonitoredDrive().
|
private |
Boolean that declares if a unit has been mounted.
Definition at line 86 of file creaImageIOListener.h.
|
private |
The validation signal.
Definition at line 90 of file creaImageIOListener.h.
|
private |
The mutex.
Definition at line 80 of file creaImageIOListener.h.
Referenced by SetAddFilesState(), SetMonitoredDrive(), and SetRemoveFilesState().
|
private |
Boolean that declares if, on CD unmount, the files that were in the drive should be removed.
Definition at line 84 of file creaImageIOListener.h.
Referenced by SetRemoveFilesState().