~ubuntu-branches/ubuntu/trusty/digikam/trusty

« back to all changes in this revision

Viewing changes to core/utilities/setup/cameralist.cpp

  • Committer: Package Import Robot
  • Author(s): Mark Purcell
  • Date: 2012-09-27 21:41:30 UTC
  • mfrom: (1.2.43)
  • mto: This revision was merged to the branch mainline in revision 86.
  • Revision ID: package-import@ubuntu.com-20120927214130-i8v3ufr21nesp29i
Tags: 4:3.0.0~beta1a-1
* New upstream release

* Fix "wrongly conflicts phonon-backend-vlc" dropped (Closes: #688142)
* debian/watch include download.kde.org

* digikam 3.0.0 uses features from unreleased kdegraphics >=4.10 & ships 
a private version of the kdegraphics libs - this is not the Debian way :-(
* Unsatisfactory Conflicts: libkipi8, libkexiv2-10, libkdcraw20, libksane0
* Suspend digikam-dbg >130Mb

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
 * Date        : 2003-02-03
7
7
 * Description : Cameras list container
8
8
 *
9
 
 * Copyright (C) 2003-2005 by Renchi Raju <renchi@pooh.tam.uiuc.edu>
 
9
 * Copyright (C) 2003-2005 by Renchi Raju <renchi dot raju at gmail dot com>
10
10
 * Copyright (C) 2006-2012 by Gilles Caulier <caulier dot gilles at gmail dot com>
11
11
 *
12
12
 * This program is free software; you can redistribute it
54
54
    return m_defaultList;
55
55
}
56
56
 
57
 
class CameraList::CameraListPrivate
 
57
class CameraList::Private
58
58
{
59
59
public:
60
60
 
61
 
    CameraListPrivate() :
 
61
    Private() :
62
62
        modified(false)
63
63
    {
64
64
    }
70
70
};
71
71
 
72
72
CameraList::CameraList(QObject* const parent, const QString& file)
73
 
    : QObject(parent), d(new CameraListPrivate)
 
73
    : QObject(parent), d(new Private)
74
74
{
75
75
    d->file = file;
76
76
 
156
156
 
157
157
    QDomElement docElem = doc.documentElement();
158
158
 
159
 
    foreach(CameraType* ctype, d->clist)
 
159
    foreach(CameraType* const ctype, d->clist)
160
160
    {
161
161
        QDomElement elem = doc.createElement("item");
162
162
        elem.setAttribute("title",          ctype->title());
248
248
 
249
249
CameraType* CameraList::find(const QString& title) const
250
250
{
251
 
    foreach(CameraType* ctype, d->clist)
 
251
    foreach(CameraType* const ctype, d->clist)
252
252
    {
253
253
        if (ctype->title() == title)
254
254
        {
275
275
    }
276
276
 
277
277
    // Check if the camera is already in the list
278
 
    foreach(CameraType* ctype, d->clist)
 
278
    foreach(CameraType* const ctype, d->clist)
279
279
    {
280
280
        // We can get away with checking only the model, as the auto-detection
281
281
        // works only for usb cameras. so the port is always usb: