knewstuffgeneric.h
/*
This file is part of KDE.
Copyright (c) 2003 Cornelius Schumacher <schumacher@kde.org>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Library General Public License for more details.
You should have received a copy of the GNU Library General Public License
along with this library; see the file COPYING.LIB. If not, write to
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301, USA.
*/
#ifndef KNEWSTUFFGENERIC_H
#define KNEWSTUFFGENERIC_H
#include "knewstuff.h"
class KConfig;
class KDE_EXPORT KNewStuffGeneric : public KNewStuff
{
public:
KNewStuffGeneric( const QString &type, QWidget *parent = 0 );
~KNewStuffGeneric();
bool install( const QString &fileName );
bool createUploadFile( const QString &fileName );
QString downloadDestination( KNS::Entry *entry );
private:
QString destinationPath( KNS::Entry *entry );
KConfig *mConfig;
};
#endif
KNewStuff::downloadDestination
virtual QString downloadDestination(KNS::Entry *entry)
Return a filename which should be used as destination for downloading the specified new stuff entry...
Definition: knewstuff.cpp:72
KNewStuff::createUploadFile
virtual bool createUploadFile(const QString &fileName)=0
Create a file to be uploaded to a "new stuff provider" and return the filename.
KNS::Entry
KNewStuff data entry container.
Definition: entry.h:44
KNewStuff::install
virtual bool install(const QString &fileName)=0
Install file to application.
KNewStuffGeneric
Basic KNewStuff class with predefined actions.
Definition: knewstuffgeneric.h:42
KNewStuff
This class provides the functionality to download and upload "new stuff".
Definition: knewstuff.h:69

KDE Home | KDE Accessibility Home | Description of Access Keys