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

« back to all changes in this revision

Viewing changes to akonadi/akonadiconsole/browserwidget.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 Volker Krause <vkrause@kde.org>
3
 
 
4
 
    This library is free software; you can redistribute it and/or modify it
5
 
    under the terms of the GNU Library General Public License as published by
6
 
    the Free Software Foundation; either version 2 of the License, or (at your
7
 
    option) any later version.
8
 
 
9
 
    This library is distributed in the hope that it will be useful, but WITHOUT
10
 
    ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11
 
    FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Library General Public
12
 
    License for more details.
13
 
 
14
 
    You should have received a copy of the GNU Library General Public License
15
 
    along with this library; see the file COPYING.LIB.  If not, write to the
16
 
    Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
17
 
    02110-1301, USA.
18
 
*/
19
 
 
20
 
#ifndef BROWSERWIDGET_H
21
 
#define BROWSERWIDGET_H
22
 
 
23
 
#include <config-akonadiconsole.h>
24
 
 
25
 
#include <ui_browserwidget_itemview.h>
26
 
#include <ui_browserwidget_contentview.h>
27
 
 
28
 
#include <akonadi/collection.h>
29
 
#include <akonadi/item.h>
30
 
 
31
 
#include <QtGui/QWidget>
32
 
 
33
 
class QModelIndex;
34
 
class QItemSelectionModel;
35
 
class QStandardItemModel;
36
 
 
37
 
class KJob;
38
 
class KXmlGuiWindow;
39
 
 
40
 
namespace Akonadi {
41
 
class CollectionView;
42
 
class CollectionModel;
43
 
class ItemModel;
44
 
class Job;
45
 
class StandardActionManager;
46
 
class Monitor;
47
 
}
48
 
 
49
 
class BrowserWidget: public QWidget
50
 
{
51
 
  Q_OBJECT
52
 
 
53
 
  public:
54
 
    explicit BrowserWidget( KXmlGuiWindow *xmlGuiWindow, QWidget *parent = 0 );
55
 
 
56
 
  public slots:
57
 
    void dumpToXml();
58
 
 
59
 
  private slots:
60
 
    void collectionActivated( const QModelIndex &index );
61
 
    void itemActivated( const QModelIndex &index );
62
 
    void itemFetchDone( KJob *job );
63
 
    void modelChanged();
64
 
    void save();
65
 
    void saveResult( KJob* job );
66
 
    void addAttribute();
67
 
    void delAttribute();
68
 
    void setItem( const Akonadi::Item &item );
69
 
    void dumpToXmlResult( KJob *job );
70
 
    void clear();
71
 
 
72
 
  private:
73
 
    Akonadi::CollectionModel *mCollectionModel;
74
 
    Akonadi::CollectionView *mCollectionView;
75
 
    Akonadi::ItemModel *mItemModel;
76
 
    Ui::ItemViewWidget itemUi;
77
 
    Ui::ContentViewWidget contentUi;
78
 
    Akonadi::Collection::Id mCurrentCollection;
79
 
    Akonadi::Item mCurrentItem;
80
 
    QStandardItemModel *mAttrModel;
81
 
#ifdef NEPOMUK_FOUND
82
 
    QStandardItemModel *mNepomukModel;
83
 
#endif
84
 
    Akonadi::StandardActionManager *mStdActionManager;
85
 
    Akonadi::Monitor *mMonitor;
86
 
};
87
 
 
88
 
#endif