• Skip to content
  • Skip to link menu
KDE 4.6 API Reference
  • KDE API Reference
  • kdelibs
  • KDE Home
  • Contact Us
 

KNewStuff

entrydetailsdialog.h

Go to the documentation of this file.
00001 /*
00002     Copyright (C) 2009 Frederik Gladhorn <gladhorn@kde.org>
00003 
00004     This library is free software; you can redistribute it and/or
00005     modify it under the terms of the GNU Lesser General Public
00006     License as published by the Free Software Foundation; either
00007     version 2.1 of the License, or (at your option) any later version.
00008 
00009     This library is distributed in the hope that it will be useful,
00010     but WITHOUT ANY WARRANTY; without even the implied warranty of
00011     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00012     Lesser General Public License for more details.
00013 
00014     You should have received a copy of the GNU Lesser General Public
00015     License along with this library.  If not, see <http://www.gnu.org/licenses/>.
00016 */
00017 
00018 #ifndef KNEWSTUFF3_UI_ENTRYDETAILS_H
00019 #define KNEWSTUFF3_UI_ENTRYDETAILS_H
00020 
00021 #include <QtCore/QObject>
00022 #include <knewstuff3/core/entryinternal.h>
00023 
00024 #include "ui_downloadwidget.h"
00025 
00026 class QListWidgetItem;
00027 
00028 namespace KNS3
00029 {
00030     class Engine;
00031 
00032 class EntryDetails :public QObject
00033 {
00034     Q_OBJECT
00035 
00036 public:
00037     EntryDetails(Engine* engine, Ui::DownloadWidget* widget);
00038     ~EntryDetails();
00039     
00040 public Q_SLOTS:
00041     void setEntry(const KNS3::EntryInternal& entry);
00042 
00043 private Q_SLOTS:
00044     void slotEntryPreviewLoaded(const KNS3::EntryInternal& entry, KNS3::EntryInternal::PreviewType type);
00045     void install();
00046     void slotInstallActionTriggered(QAction*);
00047     void uninstall();
00048 
00049     void ratingChanged(uint rating);
00050     void becomeFan();
00051     // more details loaded
00052     void entryChanged(const KNS3::EntryInternal& entry);
00053     // installed/updateable etc
00054     void entryStatusChanged(const KNS3::EntryInternal& entry);
00055     void updateButtons();
00056     
00057     void preview1Selected();
00058     void preview2Selected();
00059     void preview3Selected();
00060     
00061 private:
00062     void init();
00063     void previewSelected(int current);
00064     
00065     Engine *m_engine;
00066     Ui::DownloadWidget* ui;
00067     EntryInternal m_entry;
00068     QImage m_currentPreview;
00069     QListWidgetItem* m_previewItem1;
00070     QListWidgetItem* m_previewItem2;
00071     QListWidgetItem* m_previewItem3;
00072 };
00073 
00074 }
00075 
00076 #endif

KNewStuff

Skip menu "KNewStuff"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.7.3
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