
#include <cascade/app/CascadeMountMessage.h>
Public Types | |
| enum | MountType { kMounted = 0, kUnmounted = 1 } |
| enum | MediaType { kInternalFlash = 0, kCompactFlash = 1, kSmartMedia = 2, kMemoryStick = 3, kSDMedia = 4, kExternalMedia = 5, kNFSMount = 6, kSMBMount = 7, kFTPMount = 8, kUPnPAVMount = 9, kNumMediaTypes = kUPnPAVMount + 1 } |
| enum | { kMaxMediaDescLen = 127, kMaxMediaDesc = kMaxMediaDescLen + 1, kMaxMountPointLen = 255, kMaxMountPoint = kMaxMountPointLen + 1 } |
Static Public Member Functions | |
| static u32 | MessageID () |
Public Attributes | |
| MountType | m_mountType |
| MediaType | m_mediaType |
| char | m_mountPoint [kMaxMountPoint] |
| char | m_mediaDesc [kMaxMediaDesc] |
| bool | m_bReadOnly |
CascadeMountMessage is broadcast to all local wormholes whenever a new mount point is added, removed, or changed. Mount messages are automatically dispatched by class CascadeApp.
|
|
|
|
|
represents the type of the media being mounted or unmounted CascadeMountMessages contain a member variable (m_mediaType) that indicates the type of media that was mounted or unmounted.
|
|
|
represents the type of the mount message CascadeMountMessages contain a member variable (m_mountType) of this type that indicates whether the mount message is notifying that a file system has been mounted or unmounted.
|
|
|
returns the messageID of the CascadeMountMessage MessageID() is used to determine if a wormhole message is a CascadeMountMessage Use it as follows:
CascadeMessage * pMessage = wormhole.WaitForMessage();
if ((NULL != pMessage) && (pMessage->ID() == CascadeMountMessage::MessageID()))
{
// we have a mount message
}
|
|
|
indicates whether the file system is read-only m_bReadOnly is true if the file system the message applies to is read-only, false if the file system is read-write |
|
|
the description of the media being mounted or unmounted m_mediaDesc the description of the media being mounted or unmounted |
|
|
the type of media that was mounted or unmounted m_mediaType contains type of media the message applies to
|
|
|
the file system mount point m_mountPoint contains the file system mount point (path) that is being notified |
|
|
the type of the mount message m_mountType contains the type of the mount message
|
1.4.1