~ubuntu-branches/ubuntu/karmic/kdepim/karmic-backports

« back to all changes in this revision

Viewing changes to akonadi/resources/shared/singlefileresourceconfigdialogbase.h

  • Committer: Bazaar Package Importer
  • Author(s): Alessandro Ghersi, Alessandro Ghersi, Harald Sitter
  • Date: 2009-06-27 04:40:05 UTC
  • mfrom: (1.1.39 upstream)
  • Revision ID: james.westby@ubuntu.com-20090627044005-4y2vm9xz7rvmzi4p
Tags: 4:4.2.95svn20090701-0ubuntu1
[ Alessandro Ghersi ]
* New upstream release
  - Bump build-deps
* Remove akonadi-kde and libmaildir4 packages
  - remove akonadi-kde.install and libmaildir4.install
  - remove libmaildir4 from debian/rules
  - remove akonadi-kde and libmaildir4 from depends
  - remove akonadi-kde and libmaildir4 from installgen
* Update kdepim-dev.install
* Update kpilot.install
* Add akonadi-kde and libmaildir4 transitional packages

[ Harald Sitter ]
* KAddressbook replaces Kontact << 4.2.85 (LP: #378373)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
    Copyright (c) 2008 Bertjan Broeksema <b.broeksema@kdemail.org>
 
3
    Copyright (c) 2008 Volker Krause <vkrause@kde.org>
 
4
 
 
5
    This library is free software; you can redistribute it and/or modify it
 
6
    under the terms of the GNU Library General Public License as published by
 
7
    the Free Software Foundation; either version 2 of the License, or (at your
 
8
    option) any later version.
 
9
 
 
10
    This library is distributed in the hope that it will be useful, but WITHOUT
 
11
    ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
 
12
    FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Library General Public
 
13
    License for more details.
 
14
 
 
15
    You should have received a copy of the GNU Library General Public License
 
16
    along with this library; see the file COPYING.LIB.  If not, write to the
 
17
    Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
 
18
    02110-1301, USA.
 
19
*/
 
20
 
 
21
#ifndef AKONADI_SINGLEFILERESOURCECONFIGDIALOGBASE_H
 
22
#define AKONADI_SINGLEFILERESOURCECONFIGDIALOGBASE_H
 
23
 
 
24
#include "ui_singlefileresourceconfigdialog.h"
 
25
 
 
26
#include <KDE/KDialog>
 
27
 
 
28
class KConfigDialogManager;
 
29
class KFileItem;
 
30
class KJob;
 
31
 
 
32
namespace KIO {
 
33
class StatJob;
 
34
}
 
35
 
 
36
namespace Akonadi {
 
37
 
 
38
/**
 
39
 * Base class for the configuration dialog for single file based resources.
 
40
 * @see SingleFileResourceConfigDialog
 
41
 */
 
42
class SingleFileResourceConfigDialogBase : public KDialog
 
43
{
 
44
  Q_OBJECT
 
45
  public:
 
46
    explicit SingleFileResourceConfigDialogBase( WId windowId );
 
47
 
 
48
    /**
 
49
     * Adds @param page to the tabwidget. This can be used to add custom
 
50
     * settings for a specific single file resource.
 
51
     */
 
52
    void addPage( const QString &title, QWidget *page );
 
53
 
 
54
    /**
 
55
     * Set file extension filter.
 
56
     */
 
57
    void setFilter( const QString &filter );
 
58
 
 
59
  protected Q_SLOTS:
 
60
    virtual void save() = 0;
 
61
 
 
62
  protected:
 
63
    Ui::SingleFileResourceConfigDialog ui;
 
64
    KConfigDialogManager* mManager;
 
65
 
 
66
  private:
 
67
    KIO::StatJob* mStatJob;
 
68
    bool mDirUrlChecked;
 
69
 
 
70
  private Q_SLOTS:
 
71
    void validate();
 
72
    void slotStatJobResult( KJob * );
 
73
};
 
74
 
 
75
}
 
76
 
 
77
#endif