~ubuntu-branches/ubuntu/intrepid/digikam/intrepid

« back to all changes in this revision

Viewing changes to digikam/digikam/cameradragobject.h

  • Committer: Bazaar Package Importer
  • Author(s): Mark Purcell
  • Date: 2008-07-17 20:25:39 UTC
  • mfrom: (1.2.15 upstream) (3.1.2 lenny)
  • Revision ID: james.westby@ubuntu.com-20080717202539-6n7dtirbkoo7qvhd
Tags: 2:0.9.4-1
* New upstream release
  - digiKam 0.9.4 Release Plan (KDE3) ~ 13 July 08 (Closes: #490144)
* DEB_CONFIGURE_EXTRA_FLAGS := --without-included-sqlite3
* Debhelper compatibility level V7
* Install pixmaps in debian/*.install
* Add debian/digikam.lintian-overrides

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* ============================================================
2
 
 *
3
 
 * This file is a part of digiKam project
4
 
 * http://www.digikam.org
5
 
 *
6
 
 * Date   : 2003-02-18
7
 
 * Description : drag and drop camera management 
8
 
 * 
9
 
 * Copyright (C) 2003-2005 by Renchi Raju <renchi@pooh.tam.uiuc.edu>
10
 
 * Copyright (C) 2006-2007 by Gilles Caulier <caulier dot gilles at gmail dot com>
11
 
 *
12
 
 * This program is free software; you can redistribute it
13
 
 * and/or modify it under the terms of the GNU General
14
 
 * Public License as published by the Free Software Foundation;
15
 
 * either version 2, or (at your option)
16
 
 * any later version.
17
 
 * 
18
 
 * This program is distributed in the hope that it will be useful,
19
 
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20
 
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
21
 
 * GNU General Public License for more details.
22
 
 * 
23
 
 * ============================================================ */
24
 
 
25
 
#ifndef CAMERADRAGOBJECT_H
26
 
#define CAMERADRAGOBJECT_H
27
 
 
28
 
// Qt includes.
29
 
 
30
 
#include <qdragobject.h>
31
 
 
32
 
class QMimeSource;
33
 
class QWidget;
34
 
 
35
 
namespace Digikam
36
 
{
37
 
 
38
 
class CameraType;
39
 
 
40
 
class CameraDragObject : public QStoredDrag
41
 
{
42
 
 
43
 
public:
44
 
 
45
 
    CameraDragObject(const CameraType& ctype, QWidget* dragSource=0);
46
 
    ~CameraDragObject();
47
 
 
48
 
    static bool canDecode(const QMimeSource* e);
49
 
    static bool decode(const QMimeSource* e, CameraType& ctype);
50
 
 
51
 
private:
52
 
 
53
 
    void setCameraType(const CameraType& ctype);
54
 
 
55
 
};
56
 
 
57
 
}  // namespace Digikam
58
 
 
59
 
#endif  // CAMERADRAGOBJECT_H