french -> French
[kdepim.git] / examples / akonablog / mainwidget.h
blob9649c086ce29955d141a1ef2e2a9cf9bfc85b81c
1 /*
2 Copyright (c) 2007 Bruno Virlet <bruno.virlet@gmail.com>
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.
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.
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.
20 #ifndef MAINWIDGET_H
21 #define MAINWIDGET_H
23 #include "blogmodel.h"
24 #include <QWidget>
26 class QTreeView;
27 class QListView;
28 class AkonadiTabBar;
29 class MainWindow;
31 class MainWidget: public QWidget
33 Q_OBJECT
35 public:
36 MainWidget( MainWindow *parent = 0 );
38 private slots:
39 void slotCurrentResourceChanged( const QModelIndex& );
40 void slotCurrentTabChanged( const Akonadi::Collection& );
42 private:
43 BlogModel *mMessageModel;
44 QTreeView *mMessageList;
45 QListView *m_resourcesView;
46 AkonadiTabBar *m_tabBar;
48 MainWindow *mMainWindow;
51 #endif