~ubuntu-branches/ubuntu/feisty/digikam/feisty

« back to all changes in this revision

Viewing changes to digikam/utilities/cameragui/dkcamera.h

  • Committer: Bazaar Package Importer
  • Author(s): Achim Bohnet
  • Date: 2005-03-10 02:39:02 UTC
  • mfrom: (1.2.1 upstream) (2.1.1 hoary)
  • Revision ID: james.westby@ubuntu.com-20050310023902-023nymfst5mg696c
Tags: 0.7.2-2
* debian/TODO: clean
* digikam manpage: better --detect-camera description

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* ============================================================
 
2
 * Author: Renchi Raju <renchi@pooh.tam.uiuc.edu>
 
3
 * Date  : 2004-12-21
 
4
 * Copyright 2004 by Renchi Raju
 
5
 *
 
6
 * This program is free software; you can redistribute it
 
7
 * and/or modify it under the terms of the GNU General
 
8
 * Public License as published by the Free Software Foundation;
 
9
 * either version 2, or (at your option)
 
10
 * any later version.
 
11
 * 
 
12
 * This program is distributed in the hope that it will be useful,
 
13
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
14
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
15
 * GNU General Public License for more details.
 
16
 * ============================================================ */
 
17
 
 
18
#ifndef DKCAMERA_H
 
19
#define DKCAMERA_H
 
20
 
 
21
#include <qstring.h>
 
22
 
 
23
#include "gpiteminfo.h"
 
24
 
 
25
class QStringList;
 
26
class QImage;
 
27
 
 
28
class DKCamera
 
29
{
 
30
public:
 
31
 
 
32
    DKCamera(const QString& model,
 
33
           const QString& port,
 
34
           const QString& path);
 
35
    virtual ~DKCamera();
 
36
 
 
37
    virtual bool connect() = 0;
 
38
    virtual void cancel()  = 0;
 
39
 
 
40
    virtual void getAllFolders(const QString& folder,
 
41
                               QStringList& subFolderList) = 0;
 
42
    virtual bool getItemsInfoList(const QString& folder,
 
43
                                  GPItemInfoList& infoList) = 0;
 
44
    virtual bool getThumbnail(const QString& folder,
 
45
                              const QString& itemName,
 
46
                              QImage& thumbnail) = 0;
 
47
    virtual bool getExif(const QString& folder,
 
48
                         const QString& itemName,
 
49
                         char **edata, int& esize) = 0;
 
50
 
 
51
    virtual bool downloadItem(const QString& folder,
 
52
                              const QString& itemName,
 
53
                              const QString& saveFile) = 0;
 
54
    virtual bool deleteItem(const QString& folder,
 
55
                            const QString& itemName) = 0;
 
56
    virtual bool uploadItem(const QString& folder,
 
57
                            const QString& itemName,
 
58
                            const QString& localFile) = 0;
 
59
 
 
60
    QString model() const;
 
61
    QString port()  const;
 
62
    QString path()  const;
 
63
 
 
64
private:
 
65
 
 
66
    QString m_model;
 
67
    QString m_port;
 
68
    QString m_path;
 
69
};
 
70
 
 
71
#endif /* DKCAMERA_H */