Changeset View
Changeset View
Standalone View
Standalone View
libs/store/KoStore.h
Context not available. | |||||
74 | const QByteArray &appIdentification = QByteArray(), | 74 | const QByteArray &appIdentification = QByteArray(), | ||
---|---|---|---|---|---|
75 | Backend backend = Auto, bool writeMimetype = true); | 75 | Backend backend = Auto, bool writeMimetype = true); | ||
76 | 76 | | |||
77 | /** | | |||
78 | * Open a store (i.e. the representation on disk of a Krita document). | | |||
79 | * | | |||
80 | * @param url URL of the file to open | | |||
81 | * @param mode if KoStore::Read, open an existing store to read it. | | |||
82 | * if KoStore::Write, create or replace a store. | | |||
83 | * @param backend the backend to use for the data storage. | | |||
84 | * Auto means automatically-determined for reading, | | |||
85 | * and the current format (now Zip) for writing. | | |||
86 | * | | |||
87 | * @param appIdentification the application's mimetype, | | |||
88 | * to be written in the file for "mime-magic" identification. | | |||
89 | * Only meaningful if mode is Write, and if backend!=Directory. | | |||
90 | * | | |||
91 | * If the file is remote, the backend Directory cannot be used! | | |||
92 | * | | |||
93 | * @param writeMimetype If true, some backends (notably the Zip | | |||
94 | * store) will write a file called 'mimetype' automatically and | | |||
95 | * fill it with data from the appIdentification. This is only | | |||
96 | * applicable if Mode is set to Write. | | |||
97 | * | | |||
98 | * @bug saving not completely implemented (fixed temporary file) | | |||
99 | */ | | |||
100 | static KoStore *createStore(const QUrl &url, Mode mode, | | |||
101 | const QByteArray &appIdentification = QByteArray(), Backend backend = Auto, bool writeMimetype = true); | | |||
102 | 77 | | |||
103 | /** | 78 | /** | ||
104 | * Destroys the store (i.e. closes the file on the hard disk) | 79 | * Destroys the store (i.e. closes the file on the hard disk) | ||
Context not available. |