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

KNewStuff

  • KNS3
  • Engine
Signals | Public Member Functions | List of all members
KNS3::Engine Class Reference

#include <engine.h>

Inheritance diagram for KNS3::Engine:
Inheritance graph
[legend]

Signals

void jobStarted (KJob *, const QString &)
 
void signalBusy (const QString &)
 
void signalDownloadDialogDone (KNS3::EntryInternal::List)
 
void signalEntriesLoaded (const KNS3::EntryInternal::List &entries)
 
void signalEntryChanged (const KNS3::EntryInternal &entry)
 
void signalEntryDetailsLoaded (const KNS3::EntryInternal &entry)
 
void signalEntryPreviewLoaded (const KNS3::EntryInternal &, KNS3::EntryInternal::PreviewType)
 
void signalEntryUploadFailed ()
 
void signalEntryUploadFinished ()
 
void signalError (const QString &)
 
void signalIdle (const QString &)
 
void signalMessage (const QString &message)
 
void signalPreviewFailed ()
 
void signalProvidersLoaded ()
 
void signalResetView ()
 
void signalUpdateableEntriesLoaded (const KNS3::EntryInternal::List &entries)
 

Public Member Functions

 Engine (QObject *parent=0)
 
 ~Engine ()
 
void becomeFan (const EntryInternal &entry)
 
QStringList categories () const
 
QStringList categoriesFilter () const
 
void checkForUpdates ()
 
void contactAuthor (const EntryInternal &entry)
 
bool init (const QString &configfile)
 
void install (KNS3::EntryInternal entry, int linkId=1)
 
void loadDetails (const KNS3::EntryInternal &entry)
 
void loadPreview (const KNS3::EntryInternal &entry, EntryInternal::PreviewType type)
 
void reloadEntries ()
 
void requestData (int page, int pageSize)
 
void requestMoreData ()
 
void setCategoriesFilter (const QStringList &categories)
 
void setSearchTerm (const QString &searchString)
 
void setSortMode (Provider::SortMode mode)
 
void uninstall (KNS3::EntryInternal entry)
 
bool userCanBecomeFan (const EntryInternal &entry)
 
bool userCanVote (const EntryInternal &entry)
 
void vote (const EntryInternal &entry, uint rating)
 

Detailed Description

KNewStuff engine.

An engine keeps track of data which is available locally and remote and offers high-level synchronization calls as well as upload and download primitives using an underlying GHNS protocol.

Definition at line 52 of file knewstuff3/core/engine.h.

Constructor & Destructor Documentation

Engine::Engine ( QObject *  parent = 0)

Constructor.

Definition at line 65 of file knewstuff3/core/engine.cpp.

Engine::~Engine ( )

Destructor.

Frees up all the memory again which might be taken by cached entries and providers.

Definition at line 86 of file knewstuff3/core/engine.cpp.

Member Function Documentation

void Engine::becomeFan ( const EntryInternal &  entry)

Definition at line 520 of file knewstuff3/core/engine.cpp.

QStringList Engine::categories ( ) const

Definition at line 156 of file knewstuff3/core/engine.cpp.

QStringList Engine::categoriesFilter ( ) const

Definition at line 161 of file knewstuff3/core/engine.cpp.

void Engine::checkForUpdates ( )

Definition at line 539 of file knewstuff3/core/engine.cpp.

void Engine::contactAuthor ( const EntryInternal &  entry)

Try to contact the author of the entry by email or showing their homepage.

Definition at line 487 of file knewstuff3/core/engine.cpp.

bool Engine::init ( const QString &  configfile)

Initializes the engine.

This step is application-specific and relies on an external configuration file, which determines all the details about the initialization.

Parameters
configfileKNewStuff2 configuration file (*.knsrc)
Returns
true if any valid configuration was found, false otherwise

Definition at line 96 of file knewstuff3/core/engine.cpp.

void Engine::install ( KNS3::EntryInternal  entry,
int  linkId = 1 
)

Installs an entry's payload file.

This includes verification, if necessary, as well as decompression and other steps according to the application's *.knsrc file.

Parameters
entryEntry to be installed
Returns
Whether or not installation was started successfully
See also
signalInstallationFinished
signalInstallationFailed

Definition at line 390 of file knewstuff3/core/engine.cpp.

void KNS3::Engine::jobStarted ( KJob *  ,
const QString &   
)
signal
void Engine::loadDetails ( const KNS3::EntryInternal &  entry)

Definition at line 463 of file knewstuff3/core/engine.cpp.

void Engine::loadPreview ( const KNS3::EntryInternal &  entry,
EntryInternal::PreviewType  type 
)

Definition at line 469 of file knewstuff3/core/engine.cpp.

void Engine::reloadEntries ( )

Definition at line 287 of file knewstuff3/core/engine.cpp.

void Engine::requestData ( int  page,
int  pageSize 
)

Definition at line 372 of file knewstuff3/core/engine.cpp.

void Engine::requestMoreData ( )

Definition at line 360 of file knewstuff3/core/engine.cpp.

void Engine::setCategoriesFilter ( const QStringList &  categories)

Set the categories that will be included in searches.

Definition at line 328 of file knewstuff3/core/engine.cpp.

void Engine::setSearchTerm ( const QString &  searchString)

Definition at line 343 of file knewstuff3/core/engine.cpp.

void Engine::setSortMode ( Provider::SortMode  mode)

Definition at line 334 of file knewstuff3/core/engine.cpp.

void KNS3::Engine::signalBusy ( const QString &  )
signal
void KNS3::Engine::signalDownloadDialogDone ( KNS3::EntryInternal::List  )
signal
void KNS3::Engine::signalEntriesLoaded ( const KNS3::EntryInternal::List &  entries)
signal
void KNS3::Engine::signalEntryChanged ( const KNS3::EntryInternal &  entry)
signal
void KNS3::Engine::signalEntryDetailsLoaded ( const KNS3::EntryInternal &  entry)
signal
void KNS3::Engine::signalEntryPreviewLoaded ( const KNS3::EntryInternal &  ,
KNS3::EntryInternal::PreviewType   
)
signal
void KNS3::Engine::signalEntryUploadFailed ( )
signal
void KNS3::Engine::signalEntryUploadFinished ( )
signal
void KNS3::Engine::signalError ( const QString &  )
signal
void KNS3::Engine::signalIdle ( const QString &  )
signal
void KNS3::Engine::signalMessage ( const QString &  message)
signal

Indicates a message to be added to the ui's log, or sent to a messagebox.

void KNS3::Engine::signalPreviewFailed ( )
signal
void KNS3::Engine::signalProvidersLoaded ( )
signal
void KNS3::Engine::signalResetView ( )
signal
void KNS3::Engine::signalUpdateableEntriesLoaded ( const KNS3::EntryInternal::List &  entries)
signal
void Engine::uninstall ( KNS3::EntryInternal  entry)

Uninstalls an entry.

It reverses the steps which were performed during the installation.

Parameters
entryThe entry to deinstall

Definition at line 432 of file knewstuff3/core/engine.cpp.

bool Engine::userCanBecomeFan ( const EntryInternal &  entry)

Definition at line 514 of file knewstuff3/core/engine.cpp.

bool Engine::userCanVote ( const EntryInternal &  entry)

Definition at line 502 of file knewstuff3/core/engine.cpp.

void Engine::vote ( const EntryInternal &  entry,
uint  rating 
)

Definition at line 508 of file knewstuff3/core/engine.cpp.


The documentation for this class was generated from the following files:
  • knewstuff3/core/engine.h
  • knewstuff3/core/engine.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:50:49 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