Changeset View
Changeset View
Standalone View
Standalone View
src/qtquick/PeruseConfig.h
Show First 20 Lines • Show All 107 Lines • ▼ Show 20 Line(s) | 48 | public: | |||
---|---|---|---|---|---|
108 | Q_SIGNAL void showMessage(QString message); | 108 | Q_SIGNAL void showMessage(QString message); | ||
109 | 109 | | |||
110 | // This should go somewhere more sensible, really... like a static on Qt. or something :P | 110 | // This should go somewhere more sensible, really... like a static on Qt. or something :P | ||
111 | Q_INVOKABLE QString homeDir() const; | 111 | Q_INVOKABLE QString homeDir() const; | ||
112 | /** | 112 | /** | ||
113 | * Creates a KFileMetaData::UserMetaData for this file, propery and value so the information is not lost when files are moved around outside of Peruse | 113 | * Creates a KFileMetaData::UserMetaData for this file, propery and value so the information is not lost when files are moved around outside of Peruse | ||
114 | */ | 114 | */ | ||
115 | Q_INVOKABLE void setFilesystemProperty(QString fileName, QString propertyName, QString value); | 115 | Q_INVOKABLE void setFilesystemProperty(QString fileName, QString propertyName, QString value); | ||
116 | /** | ||||
117 | * @brief getFilesystemProperty | ||||
118 | * @param fileName file name of the file to get data from. | ||||
119 | * @param propertyName value of the proper to get data from. | ||||
120 | * @return the value of the property. | ||||
121 | */ | ||||
122 | Q_INVOKABLE QString getFilesystemProperty(QString fileName, QString propertyName); | ||||
116 | private: | 123 | private: | ||
117 | class Private; | 124 | class Private; | ||
118 | Private* d; | 125 | Private* d; | ||
119 | }; | 126 | }; | ||
120 | 127 | | |||
121 | #endif//PERUSECONFIG_H | 128 | #endif//PERUSECONFIG_H |