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

« back to all changes in this revision

Viewing changes to akonadi/resources/openchange/profiledialog.h

  • Committer: Bazaar Package Importer
  • Author(s): Christian Mangold
  • Date: 2009-07-10 06:34:50 UTC
  • mfrom: (1.1.40 upstream)
  • Revision ID: james.westby@ubuntu.com-20090710063450-neojgew2fh0n3y0u
Tags: 4:4.2.96-0ubuntu1
* New upstream release
* Bump kde build-deps to 4.2.96

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
    Copyright (c) 2007 Brad Hards <bradh@frogmouth.net>
3
 
 
4
 
    Significant amounts of this code adapted from the openchange client utility,
5
 
    which is Copyright (C) Julien Kerihuel 2007 <j.kerihuel@openchange.org>.
6
 
 
7
 
    This program is free software; you can redistribute it and/or modify it
8
 
    under the terms of the GNU General Public License as published by
9
 
    the Free Software Foundation; either version 2 of the License, or (at your
10
 
    option) any later version.
11
 
 
12
 
    This program is distributed in the hope that it will be useful, but WITHOUT
13
 
    ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
14
 
    FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public
15
 
    License for more details.
16
 
 
17
 
    You should have received a copy of the GNU General Public License
18
 
    along with this program; if not, write to the Free Software
19
 
    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
20
 
    02110-1301, USA.
21
 
*/
22
 
 
23
 
#ifndef PROFILEDIALOG_H
24
 
#define PROFIDEDIALOG_H
25
 
 
26
 
#include <QDialog>
27
 
#include <QListWidget>
28
 
#include <QPushButton>
29
 
 
30
 
class OCResource;
31
 
 
32
 
class ProfileDialog : public QDialog
33
 
{
34
 
  Q_OBJECT
35
 
 
36
 
  public:
37
 
    explicit ProfileDialog( OCResource *resource, QWidget *parent = 0 );
38
 
 
39
 
  private Q_SLOTS:
40
 
    void addNewProfile();
41
 
    void deleteSelectedProfile();
42
 
    void editExistingProfile();
43
 
    void setAsDefaultProfile();
44
 
 
45
 
  private:
46
 
    void fillProfileList();
47
 
    QString selectedProfileName();
48
 
 
49
 
    OCResource *m_resource;
50
 
    QListWidget *m_listOfProfiles;
51
 
 
52
 
    QPushButton *m_setAsDefaultButton;
53
 
    QPushButton *m_editButton;
54
 
    QPushButton *m_removeButton;
55
 
};
56
 
 
57
 
#endif