~ubuntu-branches/ubuntu/vivid/kdepim/vivid

« back to all changes in this revision

Viewing changes to akonadiconsole/instanceselector.h

  • Committer: Package Import Robot
  • Author(s): Scott Kitterman, Jonathan Riddell, Rohan Garg, Scott Kitterman
  • Date: 2012-11-21 13:12:36 UTC
  • mfrom: (0.2.33)
  • Revision ID: package-import@ubuntu.com-20121121131236-32ijw9a2txrar80k
Tags: 4:4.9.80-0ubuntu1
[ Jonathan Riddell ]
* New upstream beta release

[ Rohan Garg ]
* Add nepomuk-core-dev to build-deps

[ Scott Kitterman ]
* Add new package, libpimcommon4
  - Add libpimcommon4.install
  - Add to debian/control, including kdepim-dbg and kdepim-dev depends
  - Add to kdepim-dev.install
* Remove usr/bin/backupmail and related files from kmail.install as they are
  not provided by upstream anymore
* Add usr/bin/pimsettingexporter and related files to kmail.install
* Add libnepomukwidgets-dev to build-depends

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
    This file is part of Akonadi.
 
3
 
 
4
    Copyright (c) 2012 Volker Krause <vkrause@kde.org>
 
5
 
 
6
    This program is free software; you can redistribute it and/or modify
 
7
    it under the terms of the GNU General Public License as published by
 
8
    the Free Software Foundation; either version 2 of the License, or
 
9
    (at your option) any later version.
 
10
 
 
11
    This program is distributed in the hope that it will be useful,
 
12
    but WITHOUT ANY WARRANTY; without even the implied warranty of
 
13
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 
14
    GNU General Public License for more details.
 
15
 
 
16
    You should have received a copy of the GNU General Public License
 
17
    along with this program; if not, write to the Free Software
 
18
    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
 
19
    USA.
 
20
*/
 
21
 
 
22
#ifndef INSTANCESELECTOR_H
 
23
#define INSTANCESELECTOR_H
 
24
 
 
25
#include "mainwindow.h"
 
26
 
 
27
#include <KDialog>
 
28
 
 
29
namespace Ui {
 
30
  class InstanceSelector;
 
31
}
 
32
 
 
33
/** Check if there are multiple instances of Akonadi running, and if so present
 
34
 *  a list to select the one to connect to.
 
35
 */
 
36
class InstanceSelector : public KDialog
 
37
{
 
38
  Q_OBJECT
 
39
  public:
 
40
    explicit InstanceSelector( const QString &remoteHost, QWidget* parent = 0, Qt::WFlags flags = 0 );
 
41
    virtual ~InstanceSelector();
 
42
    virtual void accept();
 
43
    virtual void reject();
 
44
 
 
45
  private:
 
46
    static QStringList instances();
 
47
 
 
48
  private:
 
49
    QScopedPointer<Ui::InstanceSelector> ui;
 
50
    QString m_remoteHost;
 
51
    QString m_instance;
 
52
    MainWindow *mWindow;
 
53
};
 
54
 
 
55
#endif // INSTANCESELECTOR_H