Changeset View
Changeset View
Standalone View
Standalone View
libkookascan/kscanoptset.h
Show First 20 Lines • Show All 114 Lines • ▼ Show 20 Line(s) | 65 | public: | |||
---|---|---|---|---|---|
115 | * following should be done: | 115 | * following should be done: | ||
116 | * | 116 | * | ||
117 | * @code | 117 | * @code | ||
118 | * KScanOptSet optSet(setName); | 118 | * KScanOptSet optSet(setName); | ||
119 | * saneDevice->getCurrentOptions(&optSet); | 119 | * saneDevice->getCurrentOptions(&optSet); | ||
120 | * optSet.saveConfig(saneDevice->scannerBackendName(), setDesc); | 120 | * optSet.saveConfig(saneDevice->scannerBackendName(), setDesc); | ||
121 | * @endcode | 121 | * @endcode | ||
122 | **/ | 122 | **/ | ||
123 | void saveConfig(const QByteArray &scannerName, const QString &desc = QString::null) const; | 123 | void saveConfig(const QByteArray &scannerName, const QString &desc = QString()) const; | ||
124 | 124 | | |||
125 | /** | 125 | /** | ||
126 | * Load an option set from the global scanner configuration file. | 126 | * Load an option set from the global scanner configuration file. | ||
127 | * | 127 | * | ||
128 | * @param scannerName The SANE device name of the scanner to which | 128 | * @param scannerName The SANE device name of the scanner to which | ||
129 | * this configuration is intended to apply. If it does not match the | 129 | * this configuration is intended to apply. If it does not match the | ||
130 | * scanner name that this option set was saved for, a warning message | 130 | * scanner name that this option set was saved for, a warning message | ||
131 | * is output (but the load will succeed, as far as is possible, anyway). | 131 | * is output (but the load will succeed, as far as is possible, anyway). | ||
▲ Show 20 Lines • Show All 78 Lines • Show Last 20 Lines |