Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members

CascadeVessel.h

Go to the documentation of this file.
00001 #ifndef _ROKU_INCLUDE_CASCADE_UTIL_CASCADEVESSEL_H
00002 #define _ROKU_INCLUDE_CASCADE_UTIL_CASCADEVESSEL_H
00003 
00004 #include <cascade/CascadeTypedefs.h>
00005 #include <cascade/app/CascadeMountMessage.h>
00006 #include <cascade/util/CascadeString.h>
00007 #include <cascade/util/CascadeArray.h>
00008 #include <cascade/util/CascadeFSObject.h>
00009 #include <cascade/graphics/CascadeDims.h>
00010 
00011 class Vessel
00012 {
00013 public:
00014     Vessel()
00015         : m_name(""), m_mountPath(""), m_workingPath(""), m_capacity(0), 
00016           m_capacityAvailable(0), m_imageCount(0), m_musicCount(0), 
00017           m_executables(NULL){}
00018     Vessel( CascadeMountMessage::MediaType type,
00019             const CascadeString name,
00020             const CascadeString path );
00021     virtual ~Vessel(){}
00022 
00023     CascadeString m_name;         // such as "Compact Flash"
00024     CascadeString m_mountPath;    // such as /mnt/compactflash
00025     CascadeString m_workingPath;  // such as /mnt/compactflash/Images/Planes
00026     CascadeString m_renderText;   // such as silverbox/ph...
00027     CascadeDims   m_renderDims;   // dims of m_renderText
00028     u64     m_capacity;                 // size, in bytes
00029     u64     m_capacityAvailable;        // available space, in bytes
00030     u32     m_imageCount;               // number of image-type files on the volume
00031     u32     m_musicCount;               // number of music-type files on the volume
00032     u32         m_executableCount;                      // number of roku-recognized executable files on the volume
00033     CascadeTemplateArray<CascadeFSObject*>* m_executables;
00034     CascadeMountMessage::MediaType m_vesselType;
00035 
00036     static Vessel * GetInternalVessel( void );
00037     static bool GetMountedVessels( CascadeTemplateArray<Vessel*>* &inArrayToFill );
00038     static bool GetContainingVessel( const CascadeString &inPath,
00039                                      Vessel* &outVessel );
00040     static void ConvertEscapedOctalCharacters( CascadeString &string );
00041 
00042 };
00043 
00044 #endif //_ROKU_INCLUDE_CASCADE_UTIL_CASCADEVESSEL_H
00045 
00047 //  LOG
00049 //  11-Nov-04   dwoodward   added m_renderText and m_renderDims
00050 //  18-May-05   mjkobb      Added GetInternalVessel
00051 

Generated on Sun Jul 24 14:27:17 2005 for Cascade Library by  doxygen 1.4.1