#include <filedialog.h>
Inheritance diagram for YSourceFile:
Public Member Functions | |
YSourceFile (const QString &f) | |
~YSourceFile () | |
void | FinalizeFile () |
Close an opened file and reset modification date to lastmodification if contentschanged=false. | |
bool | CheckImportant (const QString &string) const |
Check if this is an important line. | |
int | OpenFile () |
Opens the file, request last modification time loads old file to stringlist, truncates the file to 0. | |
int | WriteLine (const QString &line) |
int | WriteImportant (const QString &line) |
int | WriteUnimportant (const QString &line=QString::null) |
Write the specified string to YFile and makes a newline. | |
Private Attributes | |
bool | contentchanged |
QDateTime | lastmodified |
QStringList | oldcontents |
|
|
|
|
|
Check if this is an important line.
|
|
Close an opened file and reset modification date to lastmodification if contentschanged=false.
|
|
Opens the file, request last modification time loads old file to stringlist, truncates the file to 0. Opens the file, request last modification time loads old file to stringlist, truncates the file to 0 |
|
|
|
|
|
Write the specified string to YFile and makes a newline.
|
|
This flag indicated the how to set the modification date after writing the file If it is true the date stamp is set to current time if not it is reset to it original state (see member lastmodified). |
|
|
|
|