equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * |
|
16 */ |
|
17 #ifndef CNTIMAGEUTILITY_H |
|
18 #define CNTIMAGEUTILITY_H |
|
19 |
|
20 #include <qglobal.h> |
|
21 #include <QObject> |
|
22 #include "cntimageutilityglobal.h" |
|
23 |
|
24 class QPixmap; |
|
25 |
|
26 class CNTIMAGEUTILITYLIB_EXPORT CntImageUtility : public QObject |
|
27 { |
|
28 Q_OBJECT |
|
29 |
|
30 public: |
|
31 CntImageUtility(QObject *parent = 0); |
|
32 ~CntImageUtility(); |
|
33 |
|
34 bool createImage(const QString& filePath, QString& imagePath, int& error); |
|
35 bool createImage(const QPixmap& pixmap, QString& imagePath, int& error); |
|
36 bool removeImage(const QString& imagePath, int& error); |
|
37 |
|
38 private: |
|
39 int selectDrive(int &driveIndex); |
|
40 void initPath(QString &path, int drive); |
|
41 }; |
|
42 |
|
43 #endif |