summaryrefslogtreecommitdiffstats
path: root/examples/updaterplugin
diff options
context:
space:
mode:
Diffstat (limited to 'examples/updaterplugin')
-rw-r--r--examples/updaterplugin/Updater.pluginspec9
-rw-r--r--examples/updaterplugin/config.xml15
-rw-r--r--examples/updaterplugin/config/config.xml17
-rw-r--r--examples/updaterplugin/packages/com.nokia.qtcreator/meta/installscript.js50
-rw-r--r--examples/updaterplugin/packages/com.nokia.qtcreator/meta/package.xml9
-rw-r--r--examples/updaterplugin/updaterplugin.cpp256
-rw-r--r--examples/updaterplugin/updaterplugin.h61
-rw-r--r--examples/updaterplugin/updaterplugin.pro37
-rw-r--r--examples/updaterplugin/updaterplugin.qrc5
-rw-r--r--examples/updaterplugin/updatersettingspage.cpp125
-rw-r--r--examples/updaterplugin/updatersettingspage.h59
11 files changed, 0 insertions, 643 deletions
diff --git a/examples/updaterplugin/Updater.pluginspec b/examples/updaterplugin/Updater.pluginspec
deleted file mode 100644
index f5c5206bd..000000000
--- a/examples/updaterplugin/Updater.pluginspec
+++ /dev/null
@@ -1,9 +0,0 @@
-<plugin name="Updater" version="0.0.1" compatVersion="0.0.1">
- <vendor>KDAB</vendor>
- <copyright>(C) 2009 Klarälvdalens Datakonsult AB</copyright>
- <license>We're not licensing that stuff at all :-)</license>
- <description>Updater for Qt Creator and plugins</description>
- <url>http://qt.nokia.com</url>
- <dependencyList>
- </dependencyList>
-</plugin>
diff --git a/examples/updaterplugin/config.xml b/examples/updaterplugin/config.xml
deleted file mode 100644
index 1ed83b993..000000000
--- a/examples/updaterplugin/config.xml
+++ /dev/null
@@ -1,15 +0,0 @@
-<?xml version="1.0"?>
-<Installer>
- <Name>Qt Creator</Name>
- <Version>1</Version>
- <Title>Qt Creator</Title>
- <Publisher>Nokia</Publisher>
- <ProductUrl>http://qt.nokia.com</ProductUrl>
-
- <RemoteRepositories>
- <Repository>
- <Url>http://www.kdab.com/~christoph/qtcreator/</Url>
- <Required>true</Required>
- </Repository>
- </RemoteRepositories>
-</Installer>
diff --git a/examples/updaterplugin/config/config.xml b/examples/updaterplugin/config/config.xml
deleted file mode 100644
index 4bd742565..000000000
--- a/examples/updaterplugin/config/config.xml
+++ /dev/null
@@ -1,17 +0,0 @@
-<?xml version="1.0"?>
-<Installer>
- <Name>Qt Creator</Name>
- <Version>1</Version>
- <Title>Qt Creator</Title>
- <Publisher>Nokia</Publisher>
- <ProductUrl>http://qt.nokia.com</ProductUrl>
-
- <!-- @homeDir@ and @rootDir@ are some of the supported vars -->
- <TargetDir>@homeDir@/testinstall</TargetDir>
- <RemoteRepositories>
- <Repository>
- <Url>http://www.kdab.com/~christoph/qtcreator/</Url>
- <Required>true</Required>
- </Repository>
- </RemoteRepositories>
-</Installer>
diff --git a/examples/updaterplugin/packages/com.nokia.qtcreator/meta/installscript.js b/examples/updaterplugin/packages/com.nokia.qtcreator/meta/installscript.js
deleted file mode 100644
index d8f4a1572..000000000
--- a/examples/updaterplugin/packages/com.nokia.qtcreator/meta/installscript.js
+++ /dev/null
@@ -1,50 +0,0 @@
-function Component()
-{
- if( installer.value( "os" ) == "win" )
- {
- component.addDownloadableArchive( "bin.7z" );
- component.addDownloadableArchive( "installer.dll" );
- component.addDownloadableArchive( "KDToolsCore2.dll" );
- component.addDownloadableArchive( "KDUpdater2.dll" );
- component.addDownloadableArchive( "lib.7z" );
- component.addDownloadableArchive( "LICENSE" );
- component.addDownloadableArchive( "Qt Creator.url" );
- component.addDownloadableArchive( "share.7z" );
- component.addDownloadableArchive( "uninst.exe" );
- component.addDownloadableArchive( "Updater.dll" );
- component.addDownloadableArchive( "Updater.pluginspec" );
- }
- else if( installer.value( "os" ) == "mac" )
- {
- component.addDownloadableArchive( "libUpdater.dylib" );
- component.addDownloadableArchive( "Updater.pluginspec" );
- component.addDownloadableArchive( "Qt Creator.app.7z" );
- }
-}
-
-Component.prototype.createOperations = function( archive )
-{
- if( installer.value( "os" ) == "win" )
- {
- component.createOperationsForArchive( "bin.7z" );
- component.addOperation( "Copy", "installer://com.nokia.qtcreator/installer.dll", "@TargetDir@/bin/installer.dll" );
- component.addOperation( "Copy", "installer://com.nokia.qtcreator/KDToolsCore2.dll", "@TargetDir@/bin/KDToolsCore2.dll" );
- component.addOperation( "Copy", "installer://com.nokia.qtcreator/KDUpdater2.dll", "@TargetDir@/bin/KDUpdater2.dll" );
- component.addOperation( "Copy", "installer://com.nokia.qtcreator/LICENSE", "@TargetDir@/LICENSE" );
- component.addOperation( "Copy", "installer://com.nokia.qtcreator/Qt Creator.url", "@TargetDir@/Qt Creator.url" );
- component.createOperationsForArchive( "lib.7z" );
- component.createOperationsForArchive( "share.7z" );
- component.addOperation( "Copy", "installer://com.nokia.qtcreator/uninst.exe", "@TargetDir@/uninst.exe" );
- component.addOperation( "Copy", "installer://com.nokia.qtcreator/Updater.dll", "@TargetDir@/lib/qtcreator/plugins/Nokia/Updater.dll" );
- component.addOperation( "Copy", "installer://com.nokia.qtcreator/Updater.pluginspec", "@TargetDir@/lib/qtcreator/plugins/Nokia/Updater.pluginspec" );
- }
- else if( installer.value( "os" ) == "mac" )
- {
- component.createOperationsForArchive( "Qt Creator.app.7z" );
- component.addOperation( "Copy", "installer://com.nokia.qtcreator/libUpdater.dylib", "@TargetDir@/Qt Creator.app/Contents/PlugIns/Nokia/libUpdater.dylib" );
- component.addOperation( "Copy", "installer://com.nokia.qtcreator/Updater.pluginspec", "@TargetDir@/Qt Creator.app/Contents/PlugIns/Nokia/Updater.pluginspec" );
- }
-
- if( installer.isUpdater() )
- component.addOperation( "SelfRestart" );
-}
diff --git a/examples/updaterplugin/packages/com.nokia.qtcreator/meta/package.xml b/examples/updaterplugin/packages/com.nokia.qtcreator/meta/package.xml
deleted file mode 100644
index 21f06857b..000000000
--- a/examples/updaterplugin/packages/com.nokia.qtcreator/meta/package.xml
+++ /dev/null
@@ -1,9 +0,0 @@
-<?xml version="1.0"?>
-<Package>
- <DisplayName>Qt Creator</DisplayName>
- <Description>Installs Qt Creator.</Description>
- <Version>1</Version>
- <ReleaseDate>2009-12-03</ReleaseDate>
- <Name>com.nokia.qtcreator</Name>
- <Script>installscript.js</Script>
-</Package>
diff --git a/examples/updaterplugin/updaterplugin.cpp b/examples/updaterplugin/updaterplugin.cpp
deleted file mode 100644
index 37ac72023..000000000
--- a/examples/updaterplugin/updaterplugin.cpp
+++ /dev/null
@@ -1,256 +0,0 @@
-/**************************************************************************
-**
-** This file is part of Qt SDK**
-**
-** Copyright (c) 2011 Nokia Corporation and/or its subsidiary(-ies).*
-**
-** Contact: Nokia Corporation qt-info@nokia.com**
-**
-** No Commercial Usage
-**
-** This file contains pre-release code and may not be distributed.
-** You may use this file in accordance with the terms and conditions
-** contained in the Technology Preview License Agreement accompanying
-** this package.
-**
-** GNU Lesser General Public License Usage
-**
-** This file may be used under the terms of the GNU Lesser General Public
-** License version 2.1 as published by the Free Software Foundation and
-** appearing in the file LICENSE.LGPL included in the packaging of this file.
-** Please review the following information to ensure the GNU Lesser General
-** Public License version 2.1 requirements will be met:
-** http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
-**
-** In addition, as a special exception, Nokia gives you certain additional
-** rights. These rights are described in the Nokia Qt LGPL Exception version
-** 1.1, included in the file LGPL_EXCEPTION.txt in this package.
-**
-** If you are unsure which license is appropriate for your use, please contact
-** (qt-info@nokia.com).
-**
-**************************************************************************/
-#include "updaterplugin.h"
-
-#include <QAbstractButton>
-#include <QApplication>
-#include <QFileInfo>
-#include <QMessageBox>
-#include <QProgressDialog>
-#include <QStringList>
-#include <QtPlugin>
-
-#include "componentselectiondialog.h"
-#include "updateagent.h"
-#include "updatesettings.h"
-#include "updatesettingsdialog.h"
-
-#include "common/binaryformat.h"
-#include "common/binaryformatenginehandler.h"
-#include "common/errors.h"
-#include "common/installersettings.h"
-#include "init.h"
-#include "qinstaller.h"
-#include "updatersettingspage.h"
-
-#include <coreplugin/actionmanager/actionmanager.h>
-#include <coreplugin/coreconstants.h>
-#include <coreplugin/icore.h>
-
-#include <KDUpdater/Application>
-#include <KDUpdater/PackagesInfo>
-
-#include <KDToolsCore/KDAutoPointer>
-#include <KDToolsCore/KDSelfRestarter>
-
-using namespace Updater;
-using namespace Updater::Internal;
-using namespace QInstaller;
-
-class UpdaterPlugin::Private
-{
-public:
- Private( UpdaterPlugin* qq )
- : q( qq ),
- agent( 0 )
- {
- QInstaller::init();
- }
-
-private:
- UpdaterPlugin* const q;
-
-public:
- void checkForUpdates()
- {
- std::auto_ptr< QInstallerCreator::BinaryFormatEngineHandler > handler( new QInstallerCreator::BinaryFormatEngineHandler( QInstallerCreator::ComponentIndex() ) );
- handler->setComponentIndex( QInstallerCreator::ComponentIndex() );
-
- UpdateSettings settings;
-
- try
- {
- settings.setLastCheck( QDateTime::currentDateTime() );
- installer.setRemoteRepositories( settings.repositories() );
-
- // no updates for us
- if( installer.components().isEmpty() )
- {
- QMessageBox::information( qApp->activeWindow(), tr( "Check for Updates" ), tr( "There are currently no updates available for you." ) );
- return;
- }
-
- // set the target directory to the actual one
- installer.setValue( QLatin1String( "TargetDir" ), QFileInfo( updaterapp.packagesInfo()->fileName() ).absolutePath() );
-
- // this will automatically mork components as to get installed
- ComponentSelectionDialog componentSelection( &installer );
- if( componentSelection.exec() == QDialog::Rejected )
- return;
-
- QProgressDialog dialog;
- dialog.setRange( 0, 100 );
- dialog.show();
- connect( &dialog, SIGNAL( canceled() ), &installer, SLOT( interrupt() ) );
- connect( &installer, SIGNAL( installationProgressTextChanged( QString ) ), &dialog, SLOT( setLabelText( QString ) ) );
- connect( &installer, SIGNAL( installationProgressChanged( int ) ), &dialog, SLOT( setValue( int ) ) );
- installer.installSelectedComponents();
- updatesInstalled();
- }
- catch( const QInstaller::Error& error )
- {
- QMessageBox::critical( qApp->activeWindow(), tr( "Check for Updates" ), tr( "Error while installing updates:\n%1" ).arg( error.what() ) );
- installer.rollBackInstallation();
- settings.setLastResult( tr( "Software Update failed." ) );
- }
- catch( ... )
- {
- QMessageBox::critical( qApp->activeWindow(), tr( "Check for Updates" ), tr( "Unknown error while installing updates." ) );
- installer.rollBackInstallation();
- settings.setLastResult( tr( "Software Update failed." ) );
- }
- }
-
- void updatesAvailable()
- {
- KDAutoPointer< QMessageBox > box( new QMessageBox( qApp->activeWindow() ) );
- box->setWindowTitle( tr( "Updates Available" ) );
- box->setText( tr( "Software updates are available for your computer. Do you want to install them?" ) );
- box->setStandardButtons( QMessageBox::Yes | QMessageBox::No );
- box->button( QMessageBox::Yes )->setText( tr( "Continue" ) );
- box->button( QMessageBox::No )->setText( tr( "Not Now" ) );
- box->exec();
- if ( !box )
- return;
- if ( box->clickedButton() == box->button( QMessageBox::Yes ) )
- checkForUpdates();
- }
-
- void updatesInstalled()
- {
- // only ask that dumb question if a SelfUpdateOperation was executed
- if( !KDSelfRestarter::restartOnQuit() )
- {
- QMessageBox::information( qApp->activeWindow(), tr( "Updates Installed" ), tr( "Installation complete." ) );
- return;
- }
-
- KDAutoPointer< QMessageBox > box( new QMessageBox( qApp->activeWindow() ) );
- box->setWindowTitle( tr( "Updates Installed" ) );
- box->setText( tr( "Installation complete, you need to restart the application for the changes to take effect." ) );
- box->setStandardButtons( QMessageBox::Yes | QMessageBox::No );
- box->button( QMessageBox::Yes )->setText( tr( "Restart Now" ) );
- box->button( QMessageBox::No )->setText( tr( "Restart Later" ) );
- box->exec();
- if ( !box )
- return;
- if ( box->clickedButton() == box->button( QMessageBox::Yes ) )
- QCoreApplication::quit();
- else
- KDSelfRestarter::setRestartOnQuit( false );
- }
-
- void configureUpdater()
- {
- UpdateSettingsDialog dialog( qApp->activeWindow() );
- connect( &dialog, SIGNAL( checkForUpdates() ), q, SLOT( checkForUpdates() ), Qt::QueuedConnection );
- dialog.exec();
- }
-
- KDUpdater::Application updaterapp;
- Installer installer;
- UpdateAgent* agent;
-};
-
-UpdaterPlugin::UpdaterPlugin()
- : d( new Private( this ) )
-{
- if( !KDSelfRestarter::hasInstance() )
- {
- const KDSelfRestarter* const restarter = new KDSelfRestarter;
- Q_UNUSED( restarter )
- }
-}
-
-UpdaterPlugin::~UpdaterPlugin()
-{
-}
-
-/*!
- \reimpl
-*/
-bool UpdaterPlugin::initialize( const QStringList& arguments, QString* error_message )
-{
- Q_UNUSED( arguments )
-
- try
- {
- InstallerSettings::fromFileAndPrefix( QLatin1String( ":/metadata/installer-config/config.xml" ), QLatin1String( ":/metadata/installer-config/" ) );
- }
- catch ( const Error& e )
- {
- if( error_message )
- *error_message = e.message();
- return false;
- }
-
-
- Core::ActionManager* const am = Core::ICore::instance()->actionManager();
- Core::ActionContainer* const ac = am->actionContainer( Core::Constants::M_FILE );
-
- UpdateSettings::setSettingsSource( Core::ICore::instance()->settings() );
-
- d->agent = new UpdateAgent( this );
-
- QAction* const checkForUpdates = ac->menu()->addAction( tr( "Check for Updates" ), this, SLOT( checkForUpdates() ) );
- checkForUpdates->setMenuRole( QAction::ApplicationSpecificRole );
-
- QAction* const updateSettings = ac->menu()->addAction( tr( "Updater Settings" ), this, SLOT( configureUpdater() ) );
- updateSettings->setMenuRole( QAction::ApplicationSpecificRole );
-
- UpdaterSettingsPage* const page = new UpdaterSettingsPage;
- connect( page, SIGNAL( checkForUpdates() ), this, SLOT( checkForUpdates() ) );
- addAutoReleasedObject( page );
-
- if( error_message )
- error_message->clear();
- return true;
-}
-
-/*!
- \reimpl
-*/
-void UpdaterPlugin::shutdown()
-{
-}
-
-/*!
- \reimpl
-*/
-void UpdaterPlugin::extensionsInitialized()
-{
-}
-
-#include "moc_updaterplugin.cpp"
-
-Q_EXPORT_PLUGIN( UpdaterPlugin )
diff --git a/examples/updaterplugin/updaterplugin.h b/examples/updaterplugin/updaterplugin.h
deleted file mode 100644
index e3c3a69b0..000000000
--- a/examples/updaterplugin/updaterplugin.h
+++ /dev/null
@@ -1,61 +0,0 @@
-/**************************************************************************
-**
-** This file is part of Qt SDK**
-**
-** Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).*
-**
-** Contact: Nokia Corporation qt-info@nokia.com**
-**
-** GNU Lesser General Public License Usage
-**
-** This file may be used under the terms of the GNU Lesser General Public
-** License version 2.1 as published by the Free Software Foundation and
-** appearing in the file LICENSE.LGPL included in the packaging of this file.
-** Please review the following information to ensure the GNU Lesser General
-** Public License version 2.1 requirements will be met:
-** http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
-**
-** In addition, as a special exception, Nokia gives you certain additional
-** rights. These rights are described in the Nokia Qt LGPL Exception version
-** 1.1, included in the file LGPL_EXCEPTION.txt in this package.
-**
-** If you are unsure which license is appropriate for your use, please contact
-** (qt-info@nokia.com).
-**
-**************************************************************************/
-#ifndef UPDATERPLUGIN_H
-#define UPDATERPLUGIN_H
-
-#include <extensionsystem/iplugin.h>
-
-#include <KDToolsCore/pimpl_ptr.h>
-
-namespace Updater
-{
-namespace Internal
-{
-class UpdaterPlugin : public ExtensionSystem::IPlugin
-{
- Q_OBJECT
-
-public:
- UpdaterPlugin();
- ~UpdaterPlugin();
-
-protected:
- // implementation of ExtensionSystem::IPlugin
- bool initialize( const QStringList& arguments, QString* error_message );
- void shutdown();
- void extensionsInitialized();
-
-private:
- Q_PRIVATE_SLOT( d, void checkForUpdates() )
- Q_PRIVATE_SLOT( d, void configureUpdater() )
-
- class Private;
- kdtools::pimpl_ptr< Private > d;
-};
-}
-}
-
-#endif
diff --git a/examples/updaterplugin/updaterplugin.pro b/examples/updaterplugin/updaterplugin.pro
deleted file mode 100644
index 14af657fa..000000000
--- a/examples/updaterplugin/updaterplugin.pro
+++ /dev/null
@@ -1,37 +0,0 @@
-TEMPLATE = lib
-TARGET = Updater
-
-include( ../../installerbuilder/libinstaller/libinstaller.pri )
-
-# maybe wo should not build a static plugin for Qt Creator
-CONFIG -= static
-CONFIG -= staticlib
-CONFIG += shared
-
-#PROVIDER = KDAB
-IDE_PLUGIN_PATH = PlugInst
-
-IDE_BUILD_TREE = "$$(QTCREATOR_SOURCE_PATH)"
-include($$(QTCREATOR_SOURCE_PATH)/src/qtcreatorplugin.pri)
-include($$(QTCREATOR_SOURCE_PATH)/src/libs/extensionsystem/extensionsystem.pri)
-include($$(QTCREATOR_SOURCE_PATH)/src/plugins/coreplugin/coreplugin.pri)
-
-QT += gui
-
-CONFIG += uitools
-
-LIBS = -L../../installerbuilder/lib -linstaller $$LIBS
-
-DEST=$$DESTDIR/libUpdater.dylib
-# this will make sure we are using the Qt from the QtCreater.app bundle
-ddlib="$"$lib
-macx:QMAKE_POST_LINK = for lib in `otool -L \"$${DEST}\" | sed -ne \'s,.*\\(libQt[^ ]*\\).*,\1,p\'`; do install_name_tool -change $$[QT_INSTALL_LIBS]/$${ddlib} @executable_path/../Frameworks/$${ddlib} \"$${DEST}\"; done;
-macx:QMAKE_POST_LINK += ../../installerbuilder/bin/binarycreator -p packages -c config -t ../../installerbuilder/bin/installerbase -e com.nokia.qtcreator QtCreatorInstaller.app com.nokia.qtcreator ;
-
-SOURCES += updaterplugin.cpp updatersettingspage.cpp
-
-HEADERS += updaterplugin.h updatersettingspage.h
-
-RESOURCES += updaterplugin.qrc
-
-OTHER_FILES += Updater.pluginspec
diff --git a/examples/updaterplugin/updaterplugin.qrc b/examples/updaterplugin/updaterplugin.qrc
deleted file mode 100644
index 962b28d51..000000000
--- a/examples/updaterplugin/updaterplugin.qrc
+++ /dev/null
@@ -1,5 +0,0 @@
-<RCC>
- <qresource prefix="/metadata/installer-config">
- <file>config.xml</file>
- </qresource>
-</RCC>
diff --git a/examples/updaterplugin/updatersettingspage.cpp b/examples/updaterplugin/updatersettingspage.cpp
deleted file mode 100644
index bf8ae9344..000000000
--- a/examples/updaterplugin/updatersettingspage.cpp
+++ /dev/null
@@ -1,125 +0,0 @@
-/**************************************************************************
-**
-** This file is part of Qt SDK**
-**
-** Copyright (c) 2011 Nokia Corporation and/or its subsidiary(-ies).*
-**
-** Contact: Nokia Corporation qt-info@nokia.com**
-**
-** No Commercial Usage
-**
-** This file contains pre-release code and may not be distributed.
-** You may use this file in accordance with the terms and conditions
-** contained in the Technology Preview License Agreement accompanying
-** this package.
-**
-** GNU Lesser General Public License Usage
-**
-** This file may be used under the terms of the GNU Lesser General Public
-** License version 2.1 as published by the Free Software Foundation and
-** appearing in the file LICENSE.LGPL included in the packaging of this file.
-** Please review the following information to ensure the GNU Lesser General
-** Public License version 2.1 requirements will be met:
-** http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
-**
-** In addition, as a special exception, Nokia gives you certain additional
-** rights. These rights are described in the Nokia Qt LGPL Exception version
-** 1.1, included in the file LGPL_EXCEPTION.txt in this package.
-**
-** If you are unsure which license is appropriate for your use, please contact
-** (qt-info@nokia.com).
-**
-**************************************************************************/
-#include "updatersettingspage.h"
-
-#include "updatesettingswidget.h"
-
-#include <KDToolsCore/KDAutoPointer>
-
-using namespace QInstaller;
-
-class UpdaterSettingsPage::Private
-{
-public:
- Private()
- : widget( 0 )
- {
- }
-
- KDAutoPointer< UpdateSettingsWidget > widget;
-};
-
-UpdaterSettingsPage::UpdaterSettingsPage( QObject* parent )
- : Core::IOptionsPage( parent )
-{
-}
-
-UpdaterSettingsPage::~UpdaterSettingsPage()
-{
-}
-
-/*!
- \reimpl
-*/
-QString UpdaterSettingsPage::id() const
-{
- return QLatin1String( "UpdaterSettings" );
-}
-
-/*!
- \reimpl
-*/
-QString UpdaterSettingsPage::trName() const
-{
- return tr( "Updater Settings" );
-}
-
-/*!
- \reimpl
-*/
-QString UpdaterSettingsPage::category() const
-{
- return QLatin1String( "General" );
-}
-
-/*!
- \reimpl
-*/
-QString UpdaterSettingsPage::trCategory() const
-{
- return displayCategory();
-}
-
-/*!
- \reimpl
- */
-QString UpdaterSettingsPage::displayCategory() const
-{
- return tr( "General" );
-}
-
-/*!
- \reimpl
-*/
-QWidget* UpdaterSettingsPage::createPage( QWidget* parent )
-{
- d->widget.reset( new UpdateSettingsWidget( parent ) );
- connect( d->widget.get(), SIGNAL( checkForUpdates() ), this, SIGNAL( checkForUpdates() ) );
- return d->widget.get();
-}
-
-/*!
- \reimpl
-*/
-void UpdaterSettingsPage::apply()
-{
- d->widget->accept();
-}
-
-/*!
- \reimpl
-*/
-void UpdaterSettingsPage::finish()
-{
- d->widget.reset();
-}
diff --git a/examples/updaterplugin/updatersettingspage.h b/examples/updaterplugin/updatersettingspage.h
deleted file mode 100644
index c9bfce65c..000000000
--- a/examples/updaterplugin/updatersettingspage.h
+++ /dev/null
@@ -1,59 +0,0 @@
-/**************************************************************************
-**
-** This file is part of Qt SDK**
-**
-** Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).*
-**
-** Contact: Nokia Corporation qt-info@nokia.com**
-**
-** GNU Lesser General Public License Usage
-**
-** This file may be used under the terms of the GNU Lesser General Public
-** License version 2.1 as published by the Free Software Foundation and
-** appearing in the file LICENSE.LGPL included in the packaging of this file.
-** Please review the following information to ensure the GNU Lesser General
-** Public License version 2.1 requirements will be met:
-** http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
-**
-** In addition, as a special exception, Nokia gives you certain additional
-** rights. These rights are described in the Nokia Qt LGPL Exception version
-** 1.1, included in the file LGPL_EXCEPTION.txt in this package.
-**
-** If you are unsure which license is appropriate for your use, please contact
-** (qt-info@nokia.com).
-**
-**************************************************************************/
-#ifndef UPDATERSETTINGSPAGE_H
-#define UPDATERSETTINGSPAGE_H
-
-#include <coreplugin/dialogs/ioptionspage.h>
-
-#include <KDToolsCore/pimpl_ptr.h>
-
-class UpdaterSettingsPage : public Core::IOptionsPage
-{
- Q_OBJECT
-public:
- explicit UpdaterSettingsPage( QObject* parent = 0 );
- ~UpdaterSettingsPage();
-
- QString id() const;
- QString trName() const;
- QString category() const;
- QString displayCategory() const;
- QString trCategory() const;
-
- QWidget* createPage( QWidget* parent );
-
- void apply();
- void finish();
-
-Q_SIGNALS:
- void checkForUpdates();
-
-private:
- class Private;
- kdtools::pimpl_ptr< Private > d;
-};
-
-#endif