diff options
Diffstat (limited to 'kipi-plugins/kameraklient/gpcamera.h')
-rw-r--r-- | kipi-plugins/kameraklient/gpcamera.h | 93 |
1 files changed, 93 insertions, 0 deletions
diff --git a/kipi-plugins/kameraklient/gpcamera.h b/kipi-plugins/kameraklient/gpcamera.h new file mode 100644 index 0000000..ca4ea48 --- /dev/null +++ b/kipi-plugins/kameraklient/gpcamera.h @@ -0,0 +1,93 @@ +/* ============================================================ + * File : gpcamera.h + * Author: Renchi Raju <renchi@pooh.tam.uiuc.edu> + * Date : 2003-01-21 + * Description : + * + * Copyright 2003 by Renchi Raju <renchi@pooh.tam.uiuc.edu> + + * This program is free software; you can redistribute it + * and/or modify it under the terms of the GNU General + * Public License as published by the Free Software Foundation; + * either version 2, or (at your option) + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * ============================================================ */ + +#ifndef GPCAMERA_H +#define GPCAMERA_H + +#include <qstring.h> +#include <qstringlist.h> +#include <qvaluelist.h> + +#include "gpfileiteminfo.h" + +class QImage; + +namespace KIPIKameraKlientPlugin +{ + +class GPCameraPrivate; +class GPStatus; + +class GPCamera { + +public: + enum { + GPError=0, + GPInit, + GPSetup, + GPSuccess + } Errors; + + + GPCamera(const QString& model, const QString& port); + ~GPCamera(); + + bool thumbnailSupport(); + bool deleteSupport(); + bool uploadSupport(); + bool mkDirSupport(); + bool delDirSupport(); + + int initialize(); + + void cancel(); + + int getSubFolders(const QString& folder, QValueList<QString>& subFolderList); + + void getAllItemsInfo(const QString& folder, GPFileItemInfoList& infoList); + int getItemsInfo(const QString& folder, GPFileItemInfoList& infoList); + int getThumbnail(const QString& folder, const QString& imageName, QImage& thumbnail); + int downloadItem(const QString& folder, const QString& itemName, const QString& saveFile); + int deleteItem(const QString& folder, const QString& itemName); + + // recursively delete all items + int deleteAllItems(const QString& folder); + int uploadItem(const QString& folder, const QString& itemName, const QString& localFile); + void cameraSummary(QString& summary); + void cameraManual(QString& manual); + void cameraAbout(QString& about); + + // Static Functions + static void getSupportedCameras(int& count, QStringList& clist); + static void getSupportedPorts(QStringList& plist); + static void getCameraSupportedPorts(const QString& model, QStringList& plist); + static int autoDetect(QString& model, QString& port); + +private: + int setup(); + GPCameraPrivate *d; + GPStatus *status; +}; + +} // NameSpace KIPIKameraKlientPlugin + +#endif + |