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

KNewStuff

  • sources
  • kde-4.12
  • kdelibs
  • knewstuff
  • knewstuff3
  • ui
entrydetailsdialog.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2009 Frederik Gladhorn <gladhorn@kde.org>
3 
4  This library is free software; you can redistribute it and/or
5  modify it under the terms of the GNU Lesser General Public
6  License as published by the Free Software Foundation; either
7  version 2.1 of the License, or (at your option) any later version.
8 
9  This library is distributed in the hope that it will be useful,
10  but WITHOUT ANY WARRANTY; without even the implied warranty of
11  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12  Lesser General Public License for more details.
13 
14  You should have received a copy of the GNU Lesser General Public
15  License along with this library. If not, see <http://www.gnu.org/licenses/>.
16 */
17 
18 #ifndef KNEWSTUFF3_UI_ENTRYDETAILS_H
19 #define KNEWSTUFF3_UI_ENTRYDETAILS_H
20 
21 #include <QtCore/QObject>
22 #include <knewstuff3/core/entryinternal.h>
23 
24 #include "ui_downloadwidget.h"
25 
26 class QListWidgetItem;
27 
28 namespace KNS3
29 {
30  class Engine;
31 
32 class EntryDetails :public QObject
33 {
34  Q_OBJECT
35 
36 public:
37  EntryDetails(Engine* engine, Ui::DownloadWidget* widget);
38  ~EntryDetails();
39 
40 public Q_SLOTS:
41  void setEntry(const KNS3::EntryInternal& entry);
42 
43 private Q_SLOTS:
44  void slotEntryPreviewLoaded(const KNS3::EntryInternal& entry, KNS3::EntryInternal::PreviewType type);
45  void install();
46  void uninstall();
47 
48  void ratingChanged(uint rating);
49  void becomeFan();
50  // more details loaded
51  void entryChanged(const KNS3::EntryInternal& entry);
52  // installed/updateable etc
53  void entryStatusChanged(const KNS3::EntryInternal& entry);
54  void updateButtons();
55 
56  void preview1Selected();
57  void preview2Selected();
58  void preview3Selected();
59 
60 private:
61  void init();
62  void previewSelected(int current);
63 
64  Engine *m_engine;
65  Ui::DownloadWidget* ui;
66  EntryInternal m_entry;
67  QImage m_currentPreview;
68  QListWidgetItem* m_previewItem1;
69  QListWidgetItem* m_previewItem2;
70  QListWidgetItem* m_previewItem3;
71 };
72 
73 }
74 
75 #endif
KNS3::EntryInternal
KNewStuff data entry container.
Definition: entryinternal.h:54
KNS3::Engine
KNewStuff engine.
Definition: knewstuff3/core/engine.h:52
QObject
KNS3::EntryDetails::setEntry
void setEntry(const KNS3::EntryInternal &entry)
Definition: entrydetailsdialog.cpp:67
KNS3::EntryDetails
Definition: entrydetailsdialog.h:32
KNS3::EntryDetails::EntryDetails
EntryDetails(Engine *engine, Ui::DownloadWidget *widget)
Definition: entrydetailsdialog.cpp:29
KNS3::EntryInternal::PreviewType
PreviewType
Definition: entryinternal.h:70
entryinternal.h
KNS3::EntryDetails::~EntryDetails
~EntryDetails()
Definition: entrydetailsdialog.cpp:35
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:50:48 by doxygen 1.8.7 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 API Reference

Skip menu "kdelibs 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
  • kjsembed
  •   WTF
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Nepomuk-Core
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver

Search



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