#include <ndmanagerdoc.h>
Public Types | |
enum | OpenSaveCreateReturnMessage { OK = 0, OPEN_ERROR = 1, DOWNLOAD_ERROR = 3, INCORRECT_FILE = 4, SAVE_ERROR = 5, UPLOAD_ERROR = 6, INCORRECT_CONTENT = 7, CREATION_ERROR = 8, PARSE_ERROR = 9, MISSING_FILE = 10, ALREADY_OPENED = 11 } |
Public Member Functions | |
ndManagerDoc (QWidget *parent) | |
void | closeDocument () |
OpenSaveCreateReturnMessage | openDocument (const KURL &url) |
const KURL & | url () const |
OpenSaveCreateReturnMessage | newDocument () |
OpenSaveCreateReturnMessage | save () |
OpenSaveCreateReturnMessage | save (KURL url) |
OpenSaveCreateReturnMessage | saveAs (KURL newUrl) |
OpenSaveCreateReturnMessage | saveDefault () |
OpenSaveCreateReturnMessage | saveScript (QString scriptName) |
void | rename (KURL newUrl) |
Information retun after a call to openFile/saveDocument/createFeatureFile
ndManagerDoc::ndManagerDoc | ( | QWidget * | parent | ) |
Constructor.
parent | the parent QWidget. |
void ndManagerDoc::closeDocument | ( | ) |
closes the actual document.
ndManagerDoc::OpenSaveCreateReturnMessage ndManagerDoc::openDocument | ( | const KURL & | url | ) |
opens the document by filename.
url | url of the file to open (dat file or eeg file). |
const KURL& ndManagerDoc::url | ( | ) | const [inline] |
Returns the KURL of the document.
ndManagerDoc::OpenSaveCreateReturnMessage ndManagerDoc::newDocument | ( | ) |
Loads information in order to create a new the document .
OpenSaveCreateReturnMessage ndManagerDoc::save | ( | ) | [inline] |
Saves the current parameter file.
ndManagerDoc::OpenSaveCreateReturnMessage ndManagerDoc::save | ( | KURL | url | ) |
Saves the current parameter file on the disk at the location defined by url.
url | url of the file where to save the parameter information. |
OpenSaveCreateReturnMessage ndManagerDoc::saveAs | ( | KURL | newUrl | ) | [inline] |
Saves the parameter file.
newUrl | new url where to write the parameter fil to. |
ndManagerDoc::OpenSaveCreateReturnMessage ndManagerDoc::saveDefault | ( | ) |
Save the current parameter file as the default one in the user .kde directory.
ndManagerDoc::OpenSaveCreateReturnMessage ndManagerDoc::saveScript | ( | QString | scriptName | ) |
Saves the script scriptName
.
scriptName | name of the script to save. |
void ndManagerDoc::rename | ( | KURL | newUrl | ) | [inline] |
Renames the parameter file.
newUrl | new url where to write the parameter fil to. |