10 #define WIN_NAME_MAX_LENGTH TTK_LOW_BUFFER
11 #ifndef FILE_ATTRIBUTE_DIRECTORY
12 #define FILE_ATTRIBUTE_DIRECTORY 0x00000010
14 #ifndef FILE_ATTRIBUTE_ARCHIVE
15 #define FILE_ATTRIBUTE_ARCHIVE 0x00000020
49 const QString &module =
name;
50 if(module.contains(
"image/bkg", Qt::CaseInsensitive))
60 buffer.append(dt, size);
62 image.loadFromData(buffer);
112 dir.mkpath(QFileInfo(name).path());
119 QFile file(output + name);
120 if(file.open(QIODevice::WriteOnly))
129 file.write(dt, size);
133 path << file.fileName();
181 const QString &module =
name;
182 if(module.contains(
SKN_FILE, Qt::CaseInsensitive))
191 buffer.append(dt, size);
195 pix.loadFromData(buffer);
198 else if(module.contains(
XML_FILE, Qt::CaseInsensitive))
207 buffer.append(dt, size);
241 const QString &prefix = QFileInfo(output).baseName();
244 memset(&fInfo, 0,
sizeof(fInfo));
304 data.append(dt, size);
335 const QString &prefix = QFileInfo(output).baseName();
338 memset(&fInfo, 0,
sizeof(fInfo));
ZEXTERN int ZEXPORT unzGetGlobalInfo64(unzFile file, unz_global_info64 *pglobal_info)
virtual bool readBuffer(MusicSkinItem &items) overridefinal
ZEXTERN int ZEXPORT zipCloseFileInZip(zipFile file)
ZEXTERN int ZEXPORT unzCloseCurrentFile(unzFile file)
ZEXTERN unzFile ZEXPORT unzOpen64(const void *path)
ZEXTERN int ZEXPORT unzGetCurrentFileInfo64(unzFile file, unz_file_info64 *pfile_info, char *szFileName, uLong fileNameBufferSize, void *extraField, uLong extraFieldBufferSize, char *szComment, uLong commentBufferSize)
virtual bool writeBuffer(const MusicSkinItem &items) overridefinal
TTK_MODULE_EXPORT QByteArray generatePixmapData(const QPixmap &input)
The class of the skin backgroud image.
The class of the skin item.
bool fromByteArray(const QByteArray &data)
ZEXTERN zipFile ZEXPORT zipOpen64(const void *pathname, int append)
ZEXTERN int ZEXPORT unzGoToNextFile(unzFile file)
unsigned long long int ZPOS64_T
QByteArray toByteArray() const
ZEXTERN int ZEXPORT zipClose(zipFile file, const char *global_comment)
The class of the skin XML config manager.
bool load(const QString &name)
ZEXTERN int ZEXPORT zipOpenNewFileInZip(zipFile file, const char *filename, const zip_fileinfo *zipfi, const void *extrafield_local, uInt size_extrafield_local, const void *extrafield_global, uInt size_extrafield_global, const char *comment, int method, int level)
ZEXTERN int ZEXPORT zipWriteInFileInZip(zipFile file, const void *buf, unsigned int len)
#define TTK_ERROR_STREAM(msg)
ZEXTERN int ZEXPORT unzReadCurrentFile(unzFile file, voidp buf, unsigned len)
Addition for GDAL : END.
ZEXTERN int ZEXPORT unzClose(unzFile file)
ZEXTERN int ZEXPORT unzOpenCurrentFile(unzFile file)