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

akonadi/clients

browserwidget.h

Go to the documentation of this file.
00001 /*
00002     Copyright (c) 2007 Volker Krause <vkrause@kde.org>
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 BROWSERWIDGET_H
00021 #define BROWSERWIDGET_H
00022 
00023 #include <ui_browserwidget_itemview.h>
00024 #include <ui_browserwidget_contentview.h>
00025 
00026 #include <akonadi/collection.h>
00027 #include <akonadi/item.h>
00028 
00029 #include <QtGui/QWidget>
00030 
00031 class QModelIndex;
00032 class QItemSelectionModel;
00033 class QStandardItemModel;
00034 
00035 class KJob;
00036 class KXmlGuiWindow;
00037 
00038 namespace Akonadi {
00039 class CollectionView;
00040 class CollectionModel;
00041 class ItemModel;
00042 class Job;
00043 }
00044 
00045 class BrowserWidget: public QWidget
00046 {
00047   Q_OBJECT
00048 
00049   public:
00050     explicit BrowserWidget( KXmlGuiWindow *xmlGuiWindow = 0, QWidget *parent = 0 );
00051 
00052     QItemSelectionModel *collectionSelectionModel() const;
00053     QItemSelectionModel *itemSelectionModel() const;
00054 
00055   private slots:
00056     void collectionActivated( const QModelIndex &index );
00057     void itemActivated( const QModelIndex &index );
00058     void itemFetchDone( KJob *job );
00059     void modelChanged();
00060     void save();
00061     void saveResult( KJob* job );
00062     void addAttribute();
00063     void delAttribute();
00064 
00065   private:
00066     Akonadi::CollectionModel *mCollectionModel;
00067     Akonadi::CollectionView *mCollectionView;
00068     Akonadi::ItemModel *mItemModel;
00069     Ui::ItemViewWidget itemUi;
00070     Ui::ContentViewWidget contentUi;
00071     Akonadi::Collection::Id mCurrentCollection;
00072     Akonadi::Item mCurrentItem;
00073     QStandardItemModel *mAttrModel;
00074     QStandardItemModel *mNepomukModel;
00075 };
00076 
00077 #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
  •   doc
  • 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