kpilot
Memofile Class Reference
Class that represents our filesystem memo. More...
#include <memofile.h>
Public Member Functions | |
bool | deleteFile () |
bool | fileExists () |
const QString & | filename () |
const QString & | getCategoryName () |
const QString & | getFilename () |
bool | isLoaded (void) |
bool | isModified (void) |
bool | isModifiedByPalm () |
bool | isNew (void) |
uint | lastModified () const |
bool | load () |
Memofile (int category, QString categoryName, QString fileName, QString baseDirectory) | |
Memofile (recordid_t id, int category, uint lastModifiedTime, uint size, QString categoryName, QString filename, QString baseDirectory) | |
Memofile (PilotMemo *memo, QString categoryName, QString fileName, QString baseDirectory) | |
bool | save () |
void | setID (recordid_t id) |
void | setModified (bool modified) |
void | setModifiedByPalm (bool mod) |
uint | size () const |
QString | toString () |
Detailed Description
Class that represents our filesystem memo.Definition at line 55 of file memofile.h.
Constructor & Destructor Documentation
Memofile::Memofile | ( | PilotMemo * | memo, | |
QString | categoryName, | |||
QString | fileName, | |||
QString | baseDirectory | |||
) |
Definition at line 30 of file memofile.cc.
Memofile::Memofile | ( | recordid_t | id, | |
int | category, | |||
uint | lastModifiedTime, | |||
uint | size, | |||
QString | categoryName, | |||
QString | filename, | |||
QString | baseDirectory | |||
) |
Definition at line 38 of file memofile.cc.
Definition at line 50 of file memofile.cc.
Member Function Documentation
bool Memofile::deleteFile | ( | ) |
Definition at line 134 of file memofile.cc.
bool Memofile::fileExists | ( | ) | [inline] |
Definition at line 75 of file memofile.h.
const QString& Memofile::filename | ( | ) | [inline] |
Definition at line 89 of file memofile.h.
const QString& Memofile::getCategoryName | ( | ) | [inline] |
Definition at line 87 of file memofile.h.
const QString& Memofile::getFilename | ( | ) | [inline] |
Definition at line 88 of file memofile.h.
bool Memofile::isLoaded | ( | void | ) | [inline] |
Definition at line 70 of file memofile.h.
bool Memofile::isModified | ( | void | ) |
Accessor for one bit of the record's attributes.
Is this record modified? Modified records are those that have been modified since the last HotSync.
Reimplemented from PilotRecordBase.
Definition at line 178 of file memofile.cc.
bool Memofile::isModifiedByPalm | ( | ) | [inline] |
Definition at line 69 of file memofile.h.
bool Memofile::isNew | ( | void | ) | [inline] |
Definition at line 71 of file memofile.h.
uint Memofile::lastModified | ( | ) | const [inline] |
Definition at line 62 of file memofile.h.
bool Memofile::load | ( | ) |
Definition at line 63 of file memofile.cc.
bool Memofile::save | ( | ) |
Definition at line 123 of file memofile.cc.
void Memofile::setID | ( | recordid_t | id | ) |
Sets the record ID for this record.
Use with caution -- you ca confuse the handheld by doing weird things here.
Reimplemented from PilotRecordBase.
Definition at line 115 of file memofile.cc.
void Memofile::setModified | ( | bool | modified | ) | [inline] |
Definition at line 66 of file memofile.h.
void Memofile::setModifiedByPalm | ( | bool | mod | ) | [inline] |
Definition at line 65 of file memofile.h.
uint Memofile::size | ( | ) | const [inline] |
Definition at line 63 of file memofile.h.
QString Memofile::toString | ( | ) | [inline] |
Definition at line 82 of file memofile.h.
The documentation for this class was generated from the following files: