• Skip to content
  • Skip to link menu
  • KDE API Reference
  • kdelibs-4.8.3 API Reference
  • 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 uninstall();
00047 
00048     void ratingChanged(uint rating);
00049     void becomeFan();
00050     // more details loaded
00051     void entryChanged(const KNS3::EntryInternal& entry);
00052     // installed/updateable etc
00053     void entryStatusChanged(const KNS3::EntryInternal& entry);
00054     void updateButtons();
00055     
00056     void preview1Selected();
00057     void preview2Selected();
00058     void preview3Selected();
00059     
00060 private:
00061     void init();
00062     void previewSelected(int current);
00063     
00064     Engine *m_engine;
00065     Ui::DownloadWidget* ui;
00066     EntryInternal m_entry;
00067     QImage m_currentPreview;
00068     QListWidgetItem* m_previewItem1;
00069     QListWidgetItem* m_previewItem2;
00070     QListWidgetItem* m_previewItem3;
00071 };
00072 
00073 }
00074 
00075 #endif
This file is part of the KDE documentation.
Documentation copyright © 1996-2012 The KDE developers.
Generated on Wed May 2 2012 18:39:54 by doxygen 1.8.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KNewStuff

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

kdelibs-4.8.3 API Reference

Skip menu "kdelibs-4.8.3 API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • 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
Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal