• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • kdepim
  • Sitemap
  • Contact Us
 

akonadi/clients

mainwidget.h

Go to the documentation of this file.
00001 /*
00002     Copyright (c) 2007 Bruno Virlet <bruno.virlet@gmail.com>
00003 
00004     This library is free software; you can redistribute it and/or modify it
00005     under the terms of the GNU Library General Public License as published by
00006     the Free Software Foundation; either version 2 of the License, or (at your
00007     option) any later version.
00008 
00009     This library is distributed in the hope that it will be useful, but WITHOUT
00010     ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
00011     FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Library General Public
00012     License for more details.
00013 
00014     You should have received a copy of the GNU Library General Public License
00015     along with this library; see the file COPYING.LIB.  If not, write to the
00016     Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
00017     02110-1301, USA.
00018 */
00019 
00020 #ifndef MAINWIDGET_H
00021 #define MAINWIDGET_H
00022 
00023 #include<QWidget>
00024 #include <akonadi/collection.h>
00025 
00026 class QModelIndex;
00027 class QTreeView;
00028 class QTextEdit;
00029 class QSortFilterProxyModel;
00030 
00031 class KJob;
00032 
00033 namespace Akonadi {
00034 class CollectionView;
00035 class CollectionStatisticsModel;
00036 class CollectionFilterProxyModel;
00037 class MessageThreaderProxyModel;
00038 class MessageModel;
00039 }
00040 
00041 class MainWindow;
00042 
00043 class MainWidget: public QWidget
00044 {
00045   Q_OBJECT
00046 
00047   public:
00048     MainWidget( MainWindow *parent = 0 );
00049 
00050   private slots:
00051     void collectionClicked(const Akonadi::Collection & collection);
00052     void itemActivated(const QModelIndex & index);
00053     void itemFetchDone(KJob * job);
00054     void threadCollection();
00055 
00056   private:
00057     Akonadi::Collection mCurrentCollection;
00058     Akonadi::CollectionStatisticsModel *mCollectionModel;
00059     Akonadi::CollectionFilterProxyModel *mCollectionProxyModel;
00060     Akonadi::CollectionView *mCollectionList;
00061     Akonadi::MessageModel *mMessageModel;
00062     Akonadi::MessageThreaderProxyModel *mMessageProxyModel;
00063     QTreeView *mMessageList;
00064     QTextEdit *mMessageView;
00065 
00066     MainWindow *mMainWindow;
00067 };
00068 
00069 #endif

akonadi/clients

Skip menu "akonadi/clients"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Class Members

kdepim

Skip menu "kdepim"
  • akonadi
  •   clients
  •   kabc
  •   kcal
  •   kcm
  • akregator
  • console
  •   kabcclient
  •   konsolekalendar
  • kaddressbook
  • kalarm
  •   lib
  • kdgantt
  • kdgantt1
  • kjots
  • kleopatra
  • kmail
  • kmobiletools
  • knode
  • knotes
  • kontact
  • kontactinterfaces
  • korganizer
  •   korgac
  • kpilot
  • ktimetracker
  • libkdepim
  • libkholidays
  • libkleo
  • libkpgp
  • maildir
Generated for kdepim by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal