Changeset View
Changeset View
Standalone View
Standalone View
libs/store/KoStore.h
Show First 20 Lines • Show All 219 Lines • ▼ Show 20 Line(s) | 40 | public: | |||
---|---|---|---|---|---|
220 | 220 | | |||
221 | /** | 221 | /** | ||
222 | * @return true if the given file exists in the current directory, | 222 | * @return true if the given file exists in the current directory, | ||
223 | * i.e. if open(fileName) will work. | 223 | * i.e. if open(fileName) will work. | ||
224 | */ | 224 | */ | ||
225 | bool hasFile(const QString &fileName) const; | 225 | bool hasFile(const QString &fileName) const; | ||
226 | 226 | | |||
227 | /** | 227 | /** | ||
228 | * Imports a local file into a store | | |||
229 | * @param fileName file on hard disk | | |||
230 | * @param destName file in the store | | |||
231 | */ | | |||
232 | bool addLocalFile(const QString &fileName, const QString &destName); | | |||
233 | | ||||
234 | /** | | |||
235 | * Imports data into a store | | |||
236 | * @param buffer data | | |||
237 | * @param destName file in the store | | |||
238 | */ | | |||
239 | bool addDataToFile(QByteArray &buffer, const QString &destName); | | |||
240 | | ||||
241 | /** | | |||
242 | * Extracts a file out of the store | | |||
243 | * @param sourceName file in the store | | |||
244 | * @param fileName file on a disk | | |||
245 | */ | | |||
246 | bool extractFile(const QString &sourceName, const QString &fileName); | | |||
247 | | ||||
248 | /** | | |||
249 | * Extracts a file out of the store to a buffer | 228 | * Extracts a file out of the store to a buffer | ||
250 | * @param sourceName file in the store | 229 | * @param sourceName file in the store | ||
251 | * @param data memory buffer | 230 | * @param data memory buffer | ||
252 | */ | 231 | */ | ||
253 | bool extractFile(const QString &sourceName, QByteArray &data); | 232 | bool extractFile(const QString &sourceName, QByteArray &data); | ||
254 | 233 | | |||
255 | //@{ | 234 | //@{ | ||
256 | /// See QIODevice | 235 | /// See QIODevice | ||
▲ Show 20 Lines • Show All 116 Lines • Show Last 20 Lines |