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

KNewStuff

  • knewstuff
  • knewstuff2
  • core
knewstuff2/core/installation.h
Go to the documentation of this file.
1/*
2 This file is part of KNewStuff2.
3 Copyright (c) 2007 Josef Spillner <spillner@kde.org>
4
5 This library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Lesser General Public
7 License as published by the Free Software Foundation; either
8 version 2.1 of the License, or (at your option) any later version.
9
10 This library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Lesser General Public License for more details.
14
15 You should have received a copy of the GNU Lesser General Public
16 License along with this library. If not, see <http://www.gnu.org/licenses/>.
17*/
18#ifndef KNEWSTUFF2_INSTALLATION_H
19#define KNEWSTUFF2_INSTALLATION_H
20
21#include <knewstuff2/knewstuff_export.h>
22
23#include <QtCore/QString>
24
25namespace KNS
26{
27
28struct InstallationPrivate;
29
30// FIXME: maybe it's smarter to let this class perform the installation
31// so we can reduce the size of KNS::CoreEngine a bit?
32
44class KNEWSTUFF_EXPORT Installation
45{
46public:
50 Installation();
51
55 ~Installation();
56
57 enum Policy {
58 CheckNever,
59 CheckIfPossible,
60 CheckAlways
61 };
62
63 enum Scope {
64 ScopeUser,
65 ScopeSystem
66 };
67
68 void setUncompression(const QString& uncompression);
69 void setCommand(const QString& command);
70 void setUninstallCommand(const QString& command);
71
72 void setStandardResourceDir(const QString& dir);
73 void setTargetDir(const QString& dir);
74 void setInstallPath(const QString& dir);
75 void setAbsoluteInstallPath(const QString& dir);
76
77 void setScope(Scope scope);
78 void setChecksumPolicy(Policy policy);
79 void setSignaturePolicy(Policy policy);
80
81 void setCustomName(bool customname);
82
83 QString uncompression() const;
84 QString command() const;
85 QString uninstallCommand() const;
86
87 QString standardResourceDir() const;
88 QString targetDir() const;
89 QString installPath() const;
90 QString absoluteInstallPath() const;
91 bool isRemote() const;
92
93 Policy checksumPolicy() const;
94 Policy signaturePolicy() const;
95 Scope scope() const;
96
97 bool customName() const;
98
99private:
100 Q_DISABLE_COPY(Installation)
101 InstallationPrivate * const d;
102};
103
104}
105
106#endif
KNS::Installation
KNewStuff entry installation.
Definition: knewstuff2/core/installation.h:45
KNS::Installation::Scope
Scope
Definition: knewstuff2/core/installation.h:63
KNS::Installation::ScopeUser
@ ScopeUser
Definition: knewstuff2/core/installation.h:64
KNS::Installation::Policy
Policy
Definition: knewstuff2/core/installation.h:57
KNS::Installation::CheckNever
@ CheckNever
Definition: knewstuff2/core/installation.h:58
KNS::Installation::CheckIfPossible
@ CheckIfPossible
Definition: knewstuff2/core/installation.h:59
knewstuff_export.h
KNS
Definition: knewstuff2/core/author.h:27
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 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.14.38 API Reference

Skip menu "kdelibs-4.14.38 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