25 #ifndef TBX_RES_RESFILEINFO_H 26 #define TBX_RES_RESFILEINFO_H 28 #include "resobject.h" 42 enum {CLASS_ID = 0x82ac0 };
271 #endif // TBX_RES_RESFILEINFO_H ResFileInfo & operator=(const ResFileInfo &other)
Assign from another file information window resource.
Definition: resfileinfo.h:84
ResFileInfo(std::string name)
Construct a file information window resource.
Definition: resfileinfo.h:97
A library for creating RISC OS toolbox applications.
Definition: abouttobeshownlistener.cc:34
Class for FileInfo object template.
Definition: resfileinfo.h:38
bool generate_about_to_be_shown() const
Check if the about to be shown event should be generated.
Definition: resfileinfo.h:129
void init_string(int offset, const char *value)
Initialise a string in a constructor helper.
Definition: resbase.cc:1725
void date(UTCTime value)
Set the data for the file info.
Definition: resfileinfo.h:243
void message_with_length(int offset, const char *value, int length=-1)
Assign a message where the length is at offset+4.
Definition: resbase.cc:1639
bool flag(int offset, int mask) const
Check if any of the bits in a mask are set.
Definition: resbase.h:352
void modified(int value)
Set modified state.
Definition: resfileinfo.h:187
void generate_about_to_be_shown(bool value)
Set if the about to be shown event should be generated.
Definition: resfileinfo.h:135
const char * title() const
Get the title of the dialogue.
Definition: resfileinfo.h:154
void window(const std::string &value)
Set the name of the window template that provides the window for this object.
Definition: resfileinfo.h:264
int max_title() const
Get the maximum size the title can be.
Definition: resfileinfo.h:174
void window(const char *value)
Set the name of the window template that provides the window for this object.
Definition: resfileinfo.h:257
void check_class_id(int class_id) const
Check if this objects class id is as specified.
Definition: resobject.cc:383
Classes to use/edit toolbox resources in memory.
void file_name(const std::string &value)
Set the initial file name for the file info.
Definition: resfileinfo.h:218
int modified() const
Get modified state.
Definition: resfileinfo.h:181
const char * file_name() const
Get the initial file name for the file info.
Definition: resfileinfo.h:206
int flags() const
Raw access to all the object flags.
Definition: resfileinfo.h:114
ResFileInfo(const ResFileInfo &other)
Construct a file information window resource by copying another.
Definition: resfileinfo.h:60
int int_value(int offset) const
Get an integer value.
Definition: resbase.h:316
void flags(int value)
Set all the flags.
Definition: resfileinfo.h:123
const char * string(int offset) const
Return a string at the given offset.
Definition: resbase.cc:1555
void title(const std::string &value, int max_length=-1)
Set the title of the dialogue.
Definition: resfileinfo.h:170
void title(const char *value, int max_length=-1)
Set the title of the dialogue.
Definition: resfileinfo.h:162
const char * message(int offset) const
Get the message string at the given offset.
Definition: resbase.cc:1602
const char * name() const
Return pointer to name of object.
Definition: resobject.h:79
const char * window() const
Get the name of the window template that provides the window for this object.
Definition: resfileinfo.h:250
Class to handle the 5 byte times.
Definition: path.h:51
ResFileInfo & operator=(const ResObject &other)
Assign from a ResObject.
Definition: resfileinfo.h:72
UTCTime date() const
Get the data for the file info.
Definition: resfileinfo.h:237
void filesize(int value)
Set the file size reported by the file info.
Definition: resfileinfo.h:230
ResFileInfo(const ResObject &other)
Construct a file information window resource from a ResObject.
Definition: resfileinfo.h:50
ResBase & operator=(const ResBase &other)
Assignment.
Definition: resbase.cc:1534
void file_name(const char *value)
Set the initial file name for the file info.
Definition: resfileinfo.h:212
Base class for a resource object that can be edited.
Definition: resobject.h:52
long long centiseconds() const
Get the UTC time as centiseconds.
Definition: path.h:84
void generate_dialogue_completed(bool value)
Set if the dialogue completed event should be generated.
Definition: resfileinfo.h:147
bool generate_dialogue_completed() const
Check if the dialogue completed event should be generated.
Definition: resfileinfo.h:141
int filesize() const
Get the file size reported by the file info.
Definition: resfileinfo.h:224
void file_type(int value)
Set the initial file type for the file info resource.
Definition: resfileinfo.h:200
int file_type() const
Get the initial file type for the file info resource.
Definition: resfileinfo.h:194
void init_message(int offset, const char *value)
Initialise a message in a constructor helper.
Definition: resbase.cc:1736