summaryrefslogtreecommitdiff
path: root/demos/embedded/desktopservices
diff options
context:
space:
mode:
authorCasper van Donderen <casper.vandonderen@nokia.com>2011-07-11 13:40:02 +0200
committerQt by Nokia <qt-info@nokia.com>2011-07-12 15:32:52 +0200
commit33e74809f5e4bf44a4f99959c291eb30b1f286de (patch)
tree5e0ac39f8b33bdb898df36b23495d643bc48736b /demos/embedded/desktopservices
parent73fff1ffc520e4c9f9bf05da10640325570ed2f3 (diff)
downloadqtsvg-33e74809f5e4bf44a4f99959c291eb30b1f286de.tar.gz
Merge demos and examples
Change-Id: Iaa84519e5adaa7736b245c831c7cec7ff9453191 Reviewed-on: http://codereview.qt.nokia.com/1419 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: David Boddie
Diffstat (limited to 'demos/embedded/desktopservices')
-rw-r--r--demos/embedded/desktopservices/contenttab.cpp151
-rw-r--r--demos/embedded/desktopservices/contenttab.h101
-rw-r--r--demos/embedded/desktopservices/data/Explosion.wavbin18427 -> 0 bytes
-rw-r--r--demos/embedded/desktopservices/data/designer.pngbin2529 -> 0 bytes
-rw-r--r--demos/embedded/desktopservices/data/monkey_on_64x64.pngbin3479 -> 0 bytes
-rw-r--r--demos/embedded/desktopservices/data/sax.mp3bin104104 -> 0 bytes
-rw-r--r--demos/embedded/desktopservices/desktopservices.pro32
-rw-r--r--demos/embedded/desktopservices/desktopservices.qrc8
-rw-r--r--demos/embedded/desktopservices/desktopwidget.cpp90
-rw-r--r--demos/embedded/desktopservices/desktopwidget.h73
-rw-r--r--demos/embedded/desktopservices/linktab.cpp88
-rw-r--r--demos/embedded/desktopservices/linktab.h86
-rw-r--r--demos/embedded/desktopservices/main.cpp56
-rw-r--r--demos/embedded/desktopservices/resources/browser.pngbin2525 -> 0 bytes
-rw-r--r--demos/embedded/desktopservices/resources/heart.svg55
-rw-r--r--demos/embedded/desktopservices/resources/message.pngbin1989 -> 0 bytes
-rw-r--r--demos/embedded/desktopservices/resources/music.pngbin2123 -> 0 bytes
-rw-r--r--demos/embedded/desktopservices/resources/photo.pngbin2233 -> 0 bytes
18 files changed, 0 insertions, 740 deletions
diff --git a/demos/embedded/desktopservices/contenttab.cpp b/demos/embedded/desktopservices/contenttab.cpp
deleted file mode 100644
index 49c1260..0000000
--- a/demos/embedded/desktopservices/contenttab.cpp
+++ /dev/null
@@ -1,151 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
-** All rights reserved.
-** Contact: Nokia Corporation (qt-info@nokia.com)
-**
-** This file is part of the demonstration applications of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:LGPL$
-** 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.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU General
-** Public License version 3.0 as published by the Free Software Foundation
-** and appearing in the file LICENSE.GPL included in the packaging of this
-** file. Please review the following information to ensure the GNU General
-** Public License version 3.0 requirements will be met:
-** http://www.gnu.org/copyleft/gpl.html.
-**
-** Other Usage
-** Alternatively, this file may be used in accordance with the terms and
-** conditions contained in a signed written agreement between you and Nokia.
-**
-**
-**
-**
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-// EXTERNAL INCLUDES
-#include <QKeyEvent>
-#include <QMessageBox>
-#include <QListWidget>
-#include <QVBoxLayout>
-#include <QFileInfoList>
-#include <QListWidgetItem>
-
-// INTERNAL INCLUDES
-
-// CLASS HEADER
-#include "contenttab.h"
-
-
-// CONSTRUCTORS & DESTRUCTORS
-ContentTab::ContentTab(QWidget *parent) :
- QListWidget(parent)
-{
- setDragEnabled(false);
- setIconSize(QSize(45, 45));
-}
-
-ContentTab::~ContentTab()
-{
-}
-
-// NEW PUBLIC METHODS
-void ContentTab::init(const QDesktopServices::StandardLocation &location,
- const QString &filter,
- const QString &icon)
-{
- setContentDir(location);
- QStringList filterList;
- filterList = filter.split(";");
- m_ContentDir.setNameFilters(filterList);
- setIcon(icon);
-
- connect(this, SIGNAL(itemClicked(QListWidgetItem*)),
- this, SLOT(openItem(QListWidgetItem*)));
-
- populateListWidget();
-}
-
-// NEW PROTECTED METHODS
-void ContentTab::setContentDir(const QDesktopServices::StandardLocation &location)
-{
- m_ContentDir.setPath(QDesktopServices::storageLocation(location));
-}
-
-void ContentTab::setIcon(const QString &icon)
-{
- m_Icon = QIcon(icon);
-}
-
-void ContentTab::populateListWidget()
-{
- QFileInfoList fileList = m_ContentDir.entryInfoList(QDir::Files, QDir::Time);
- foreach(QFileInfo item, fileList) {
- new QListWidgetItem(m_Icon, itemName(item), this);
- }
-}
-
-QString ContentTab::itemName(const QFileInfo &item)
-{
- return QString(item.baseName() + "." + item.completeSuffix());
-}
-
-QUrl ContentTab::itemUrl(QListWidgetItem *item)
-{
- return QUrl("file:///" + m_ContentDir.absolutePath() + "/" + item->text());
-}
-
-void ContentTab::keyPressEvent(QKeyEvent *event)
-{
- switch (event->key()) {
- case Qt::Key_Select:
- openItem(currentItem());
- default:
- QListWidget::keyPressEvent(event);
- break;
- }
-}
-
-void ContentTab::handleErrorInOpen(QListWidgetItem *item)
-{
- Q_UNUSED(item);
- QMessageBox::warning(this, tr("Operation Failed"), tr("Unknown error!"), QMessageBox::Close);
-}
-
-// NEW SLOTS
-void ContentTab::openItem(QListWidgetItem *item)
-{
-#if defined(Q_OS_SYMBIAN) && defined(Q_CC_NOKIAX86)
- // Opening music files doesn't work in Symbian emulator and in some SDKs freezes the
- // emulator entirely, so prevent it.
- QStringList nameFilters = m_ContentDir.nameFilters();
- if (nameFilters.contains("*.mp3")) {
- QMessageBox::warning(this, tr("Operation Failed"), tr("Action not supported in emulator."),
- QMessageBox::Close);
- } else
-#endif
- {
- bool ret = QDesktopServices::openUrl(itemUrl(item));
- if (!ret)
- handleErrorInOpen(item);
- }
-}
-
-
-// End of File
diff --git a/demos/embedded/desktopservices/contenttab.h b/demos/embedded/desktopservices/contenttab.h
deleted file mode 100644
index 614f42a..0000000
--- a/demos/embedded/desktopservices/contenttab.h
+++ /dev/null
@@ -1,101 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
-** All rights reserved.
-** Contact: Nokia Corporation (qt-info@nokia.com)
-**
-** This file is part of the demonstration applications of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:LGPL$
-** 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.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU General
-** Public License version 3.0 as published by the Free Software Foundation
-** and appearing in the file LICENSE.GPL included in the packaging of this
-** file. Please review the following information to ensure the GNU General
-** Public License version 3.0 requirements will be met:
-** http://www.gnu.org/copyleft/gpl.html.
-**
-** Other Usage
-** Alternatively, this file may be used in accordance with the terms and
-** conditions contained in a signed written agreement between you and Nokia.
-**
-**
-**
-**
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-#ifndef CONTENTTAB_H_
-#define CONTENTTAB_H_
-
-// EXTERNAL INCLUDES
-#include <QDir>
-#include <QUrl>
-#include <QIcon>
-#include <QFileInfo>
-#include <QListWidget>
-#include <QDesktopServices>
-
-// INTERNAL INCLUDES
-
-// FORWARD DECLARATIONS
-QT_BEGIN_NAMESPACE
-class QListWidgetItem;
-QT_END_NAMESPACE
-
-// CLASS DECLARATION
-
-/**
-* ContentTab class.
-*
-* This class implements general purpose tab for media files.
-*/
-class ContentTab : public QListWidget
-{
- Q_OBJECT
-
-public: // Constructors & Destructors
- ContentTab(QWidget *parent);
- virtual ~ContentTab();
-
-public: // New Methods
- virtual void init(const QDesktopServices::StandardLocation &location,
- const QString &filter,
- const QString &icon);
-
-protected: // New Methods
- virtual void setContentDir(const QDesktopServices::StandardLocation &location);
- virtual void setIcon(const QString &icon);
- virtual void populateListWidget();
- virtual QString itemName(const QFileInfo &item);
- virtual QUrl itemUrl(QListWidgetItem *item);
- virtual void handleErrorInOpen(QListWidgetItem *item);
-protected:
- void keyPressEvent(QKeyEvent *event);
-
-public slots: // New Slots
- virtual void openItem(QListWidgetItem *item);
-
-protected: // Owned variables
- QDir m_ContentDir;
- QIcon m_Icon;
-};
-
-
-#endif // CONTENTTAB_H_
-
-// End of File
diff --git a/demos/embedded/desktopservices/data/Explosion.wav b/demos/embedded/desktopservices/data/Explosion.wav
deleted file mode 100644
index 7b140b1..0000000
--- a/demos/embedded/desktopservices/data/Explosion.wav
+++ /dev/null
Binary files differ
diff --git a/demos/embedded/desktopservices/data/designer.png b/demos/embedded/desktopservices/data/designer.png
deleted file mode 100644
index 1485efa..0000000
--- a/demos/embedded/desktopservices/data/designer.png
+++ /dev/null
Binary files differ
diff --git a/demos/embedded/desktopservices/data/monkey_on_64x64.png b/demos/embedded/desktopservices/data/monkey_on_64x64.png
deleted file mode 100644
index 990f604..0000000
--- a/demos/embedded/desktopservices/data/monkey_on_64x64.png
+++ /dev/null
Binary files differ
diff --git a/demos/embedded/desktopservices/data/sax.mp3 b/demos/embedded/desktopservices/data/sax.mp3
deleted file mode 100644
index d77c817..0000000
--- a/demos/embedded/desktopservices/data/sax.mp3
+++ /dev/null
Binary files differ
diff --git a/demos/embedded/desktopservices/desktopservices.pro b/demos/embedded/desktopservices/desktopservices.pro
deleted file mode 100644
index 4dd1968..0000000
--- a/demos/embedded/desktopservices/desktopservices.pro
+++ /dev/null
@@ -1,32 +0,0 @@
-TEMPLATE = app
-TARGET =
-INCLUDEPATH += .
-
-HEADERS += desktopwidget.h contenttab.h linktab.h
-SOURCES += desktopwidget.cpp contenttab.cpp linktab.cpp main.cpp
-
-RESOURCES += desktopservices.qrc
-
-music.files = data/*.mp3 data/*.wav
-image.files = data/*.png
-
-target.path = $$[QT_INSTALL_DEMOS]/qtsvg/embedded/desktopservices
-sources.files = $$SOURCES $$HEADERS $$RESOURCES *.pro
-sources.path = $$[QT_INSTALL_DEMOS]/qtsvg/embedded/desktopservices
-
-symbian {
- TARGET.UID3 = 0xA000C611
- CONFIG += qt_demo
- ICON = ./resources/heart.svg
- music.path = /data/sounds/
- image.path = /data/images/
- DEPLOYMENT += music image
-}
-
-wince*{
- music.path = "\\My Documents\\My Music"
- image.path = "\\My Documents\\My Pictures"
- DEPLOYMENT += music image
-}
-
-INSTALLS += target sources
diff --git a/demos/embedded/desktopservices/desktopservices.qrc b/demos/embedded/desktopservices/desktopservices.qrc
deleted file mode 100644
index 410175f..0000000
--- a/demos/embedded/desktopservices/desktopservices.qrc
+++ /dev/null
@@ -1,8 +0,0 @@
-<!DOCTYPE RCC><RCC version="1.0">
-<qresource prefix="/">
- <file>resources/music.png</file>
- <file>resources/photo.png</file>
- <file>resources/browser.png</file>
- <file>resources/message.png</file>
-</qresource>
-</RCC>
diff --git a/demos/embedded/desktopservices/desktopwidget.cpp b/demos/embedded/desktopservices/desktopwidget.cpp
deleted file mode 100644
index d34bb98..0000000
--- a/demos/embedded/desktopservices/desktopwidget.cpp
+++ /dev/null
@@ -1,90 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
-** All rights reserved.
-** Contact: Nokia Corporation (qt-info@nokia.com)
-**
-** This file is part of the demonstration applications of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:LGPL$
-** 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.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU General
-** Public License version 3.0 as published by the Free Software Foundation
-** and appearing in the file LICENSE.GPL included in the packaging of this
-** file. Please review the following information to ensure the GNU General
-** Public License version 3.0 requirements will be met:
-** http://www.gnu.org/copyleft/gpl.html.
-**
-** Other Usage
-** Alternatively, this file may be used in accordance with the terms and
-** conditions contained in a signed written agreement between you and Nokia.
-**
-**
-**
-**
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-// EXTERNAL INCLUDES
-#include <QTabWidget>
-#include <QVBoxLayout>
-#include <QDesktopServices>
-
-// INTERNAL INCLUDES
-#include "linktab.h"
-#include "contenttab.h"
-
-// CLASS HEADER
-#include "desktopwidget.h"
-
-// CONSTRUCTORS & DESTRUCTORS
-DesktopWidget::DesktopWidget(QWidget *parent) : QWidget(parent)
-
-{
- QTabWidget *tabWidget = new QTabWidget(this);
-
- // Images
- ContentTab* imageTab = new ContentTab(tabWidget);
- imageTab->init(QDesktopServices::PicturesLocation,
- "*.png;*.jpg;*.jpeg;*.bmp;*.gif",
- ":/resources/photo.png");
- tabWidget->addTab(imageTab, tr("Images"));
-
- // Music
- ContentTab* musicTab = new ContentTab(tabWidget);
- musicTab->init(QDesktopServices::MusicLocation,
- "*.wav;*.mp3;*.mp4",
- ":/resources/music.png");
- tabWidget->addTab(musicTab, tr("Music"));
-
- // Links
- LinkTab* othersTab = new LinkTab(tabWidget);;
- // Given icon file will be overridden by LinkTab
- othersTab->init(QDesktopServices::PicturesLocation, "", "");
- tabWidget->addTab(othersTab, tr("Links"));
-
- // Layout
- QVBoxLayout *layout = new QVBoxLayout;
- layout->addWidget(tabWidget);
- setLayout(layout);
-}
-
-DesktopWidget::~DesktopWidget()
-{
-}
-
-// End of file
diff --git a/demos/embedded/desktopservices/desktopwidget.h b/demos/embedded/desktopservices/desktopwidget.h
deleted file mode 100644
index 4f0db01..0000000
--- a/demos/embedded/desktopservices/desktopwidget.h
+++ /dev/null
@@ -1,73 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
-** All rights reserved.
-** Contact: Nokia Corporation (qt-info@nokia.com)
-**
-** This file is part of the demonstration applications of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:LGPL$
-** 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.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU General
-** Public License version 3.0 as published by the Free Software Foundation
-** and appearing in the file LICENSE.GPL included in the packaging of this
-** file. Please review the following information to ensure the GNU General
-** Public License version 3.0 requirements will be met:
-** http://www.gnu.org/copyleft/gpl.html.
-**
-** Other Usage
-** Alternatively, this file may be used in accordance with the terms and
-** conditions contained in a signed written agreement between you and Nokia.
-**
-**
-**
-**
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-#ifndef DESKTOPWIDGET_H_
-#define DESKTOPWIDGET_H_
-
-// EXTERNAL INCLUDES
-#include <QWidget>
-
-// INTERNAL INCLUDES
-
-// FORWARD DECLARATIONS
-QT_BEGIN_NAMESPACE
-class QTabWidget;
-QT_END_NAMESPACE
-
-// CLASS DECLARATION
-/**
-* DesktopWidget class.
-*
-* Implements the main top level widget for QDesktopServices demo app.
-*/
-class DesktopWidget : public QWidget
-{
- Q_OBJECT
-
-public: // Constructors & Destructors
- DesktopWidget(QWidget *parent);
- ~DesktopWidget();
-
-};
-
-#endif // DESKTOPWIDGET_H_
-
-// End of file
diff --git a/demos/embedded/desktopservices/linktab.cpp b/demos/embedded/desktopservices/linktab.cpp
deleted file mode 100644
index acc7dfa..0000000
--- a/demos/embedded/desktopservices/linktab.cpp
+++ /dev/null
@@ -1,88 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
-** All rights reserved.
-** Contact: Nokia Corporation (qt-info@nokia.com)
-**
-** This file is part of the demonstration applications of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:LGPL$
-** 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.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU General
-** Public License version 3.0 as published by the Free Software Foundation
-** and appearing in the file LICENSE.GPL included in the packaging of this
-** file. Please review the following information to ensure the GNU General
-** Public License version 3.0 requirements will be met:
-** http://www.gnu.org/copyleft/gpl.html.
-**
-** Other Usage
-** Alternatively, this file may be used in accordance with the terms and
-** conditions contained in a signed written agreement between you and Nokia.
-**
-**
-**
-**
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-// EXTERNAL INCLUDES
-#include <QUrl>
-#include <QMessageBox>
-#include <QListWidgetItem>
-
-// INTERNAL INCLUDES
-
-// CLASS HEADER
-#include "linktab.h"
-
-LinkTab::LinkTab(QWidget *parent) :
- ContentTab(parent)
-{
-}
-
-LinkTab::~LinkTab()
-{
-}
-
-void LinkTab::populateListWidget()
-{
- m_WebItem = new QListWidgetItem(QIcon(":/resources/browser.png"), tr("Launch Browser"), this);
- m_MailToItem = new QListWidgetItem(QIcon(":/resources/message.png"), tr("New e-mail"), this);
-}
-
-QUrl LinkTab::itemUrl(QListWidgetItem *item)
-{
- if (m_WebItem == item) {
- return QUrl(tr("http://qt.nokia.com"));
- } else if (m_MailToItem == item) {
- return QUrl(tr("mailto:qts60-feedback@trolltech.com?subject=QtS60 feedback&body=Hello"));
- } else {
- // We should never endup here
- Q_ASSERT(false);
- return QUrl();
- }
-}
-void LinkTab::handleErrorInOpen(QListWidgetItem *item)
-{
- if (m_MailToItem == item) {
- QMessageBox::warning(this, tr("Operation Failed"), tr("Please check that you have\ne-mail account defined."), QMessageBox::Close);
- } else {
- ContentTab::handleErrorInOpen(item);
- }
-}
-
-// End of file
diff --git a/demos/embedded/desktopservices/linktab.h b/demos/embedded/desktopservices/linktab.h
deleted file mode 100644
index 03609f7..0000000
--- a/demos/embedded/desktopservices/linktab.h
+++ /dev/null
@@ -1,86 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
-** All rights reserved.
-** Contact: Nokia Corporation (qt-info@nokia.com)
-**
-** This file is part of the demonstration applications of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:LGPL$
-** 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.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU General
-** Public License version 3.0 as published by the Free Software Foundation
-** and appearing in the file LICENSE.GPL included in the packaging of this
-** file. Please review the following information to ensure the GNU General
-** Public License version 3.0 requirements will be met:
-** http://www.gnu.org/copyleft/gpl.html.
-**
-** Other Usage
-** Alternatively, this file may be used in accordance with the terms and
-** conditions contained in a signed written agreement between you and Nokia.
-**
-**
-**
-**
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-#ifndef LINKTAB_H_
-#define LINKTAB_H_
-
-// EXTERNAL INCLUDES
-
-// INTERNAL INCLUDES
-#include "contenttab.h"
-
-// FORWARD DECLARATIONS
-QT_BEGIN_NAMESPACE
-class QWidget;
-class QListWidgetItem;
-QT_END_NAMESPACE
-
-// CLASS DECLARATION
-
-/**
-* LinkTab class.
-*
-* This class implements tab for opening http and mailto links.
-*/
-class LinkTab : public ContentTab
-{
- Q_OBJECT
-
-public: // Constructors & Destructors
- LinkTab(QWidget *parent);
- ~LinkTab();
-
-protected: // Derived Methods
- virtual void populateListWidget();
- virtual QUrl itemUrl(QListWidgetItem *item);
- virtual void handleErrorInOpen(QListWidgetItem *item);
-
-private: // Used variables
- QListWidgetItem *m_WebItem;
- QListWidgetItem *m_MailToItem;
-
-private: // Owned variables
-
-};
-
-#endif // CONTENTTAB_H_
-
-// End of File
diff --git a/demos/embedded/desktopservices/main.cpp b/demos/embedded/desktopservices/main.cpp
deleted file mode 100644
index 2122f5a..0000000
--- a/demos/embedded/desktopservices/main.cpp
+++ /dev/null
@@ -1,56 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
-** All rights reserved.
-** Contact: Nokia Corporation (qt-info@nokia.com)
-**
-** This file is part of the demonstration applications of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:LGPL$
-** 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.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU General
-** Public License version 3.0 as published by the Free Software Foundation
-** and appearing in the file LICENSE.GPL included in the packaging of this
-** file. Please review the following information to ensure the GNU General
-** Public License version 3.0 requirements will be met:
-** http://www.gnu.org/copyleft/gpl.html.
-**
-** Other Usage
-** Alternatively, this file may be used in accordance with the terms and
-** conditions contained in a signed written agreement between you and Nokia.
-**
-**
-**
-**
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-#include <QApplication>
-#include "desktopwidget.h"
-
-int main(int argc, char *argv[])
-{
- Q_INIT_RESOURCE(desktopservices);
-
- QApplication app(argc, argv);
- DesktopWidget* myWidget = new DesktopWidget(0);
- myWidget->showMaximized();
-
- return app.exec();
-}
-
-// End of file
diff --git a/demos/embedded/desktopservices/resources/browser.png b/demos/embedded/desktopservices/resources/browser.png
deleted file mode 100644
index 9ecda6b..0000000
--- a/demos/embedded/desktopservices/resources/browser.png
+++ /dev/null
Binary files differ
diff --git a/demos/embedded/desktopservices/resources/heart.svg b/demos/embedded/desktopservices/resources/heart.svg
deleted file mode 100644
index ba5f050..0000000
--- a/demos/embedded/desktopservices/resources/heart.svg
+++ /dev/null
@@ -1,55 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<!-- Created with Inkscape (http://www.inkscape.org/) --><svg viewBox="100 200 550 500" height="595.27559pt" id="svg1" inkscape:version="0.40+cvs" sodipodi:docbase="C:\Documents and Settings\Jon Phillips\My Documents\projects\clipart-project\submissions" sodipodi:docname="heart-left-highlight.svg" sodipodi:version="0.32" width="595.27559pt" xmlns="http://www.w3.org/2000/svg" xmlns:cc="http://web.resource.org/cc/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:sodipodi="http://inkscape.sourceforge.net/DTD/sodipodi-0.dtd" xmlns:svg="http://www.w3.org/2000/svg">
-<metadata>
-<rdf:RDF xmlns:cc="http://web.resource.org/cc/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
-<cc:Work rdf:about="">
-<dc:title>Heart Left-Highlight</dc:title>
-<dc:description>This is a normal valentines day heart.</dc:description>
-<dc:subject>
-<rdf:Bag>
-<rdf:li>holiday</rdf:li>
-<rdf:li>valentines</rdf:li>
-<rdf:li></rdf:li>
-<rdf:li>valentine</rdf:li>
-<rdf:li>hash(0x8a091c0)</rdf:li>
-<rdf:li>hash(0x8a0916c)</rdf:li>
-<rdf:li>signs_and_symbols</rdf:li>
-<rdf:li>hash(0x8a091f0)</rdf:li>
-<rdf:li>day</rdf:li>
-</rdf:Bag>
-</dc:subject>
-<dc:publisher>
-<cc:Agent rdf:about="http://www.openclipart.org">
-<dc:title>Jon Phillips</dc:title>
-</cc:Agent>
-</dc:publisher>
-<dc:creator>
-<cc:Agent>
-<dc:title>Jon Phillips</dc:title>
-</cc:Agent>
-</dc:creator>
-<dc:rights>
-<cc:Agent>
-<dc:title>Jon Phillips</dc:title>
-</cc:Agent>
-</dc:rights>
-<dc:date></dc:date>
-<dc:format>image/svg+xml</dc:format>
-<dc:type rdf:resource="http://purl.org/dc/dcmitype/StillImage"/>
-<cc:license rdf:resource="http://web.resource.org/cc/PublicDomain"/>
-<dc:language>en</dc:language>
-</cc:Work>
-<cc:License rdf:about="http://web.resource.org/cc/PublicDomain">
-<cc:permits rdf:resource="http://web.resource.org/cc/Reproduction"/>
-<cc:permits rdf:resource="http://web.resource.org/cc/Distribution"/>
-<cc:permits rdf:resource="http://web.resource.org/cc/DerivativeWorks"/>
-</cc:License>
-</rdf:RDF>
-</metadata>
-<defs id="defs3"/>
-<sodipodi:namedview bordercolor="#666666" borderopacity="1.0" id="base" inkscape:current-layer="layer1" inkscape:cx="549.40674" inkscape:cy="596.00159" inkscape:document-units="px" inkscape:guide-bbox="true" inkscape:pageopacity="0.0" inkscape:pageshadow="2" inkscape:window-height="615" inkscape:window-width="866" inkscape:window-x="88" inkscape:window-y="116" inkscape:zoom="0.35000000" pagecolor="#ffffff" showguides="true"/>
-<g id="layer1" inkscape:groupmode="layer" inkscape:label="Layer 1">
-<path d="M 263.41570,235.14588 C 197.17570,235.14588 143.41575,288.90587 143.41575,355.14588 C 143.41575,489.90139 279.34890,525.23318 371.97820,658.45392 C 459.55244,526.05056 600.54070,485.59932 600.54070,355.14588 C 600.54070,288.90588 546.78080,235.14587 480.54070,235.14588 C 432.49280,235.14588 391.13910,263.51631 371.97820,304.33338 C 352.81740,263.51630 311.46370,235.14587 263.41570,235.14588 z " id="path7" sodipodi:nodetypes="ccccccc" style="fill:#e60000;fill-opacity:1.0000000;stroke:#000000;stroke-width:18.700001;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000"/>
-<path d="M 265.00000,253.59375 C 207.04033,253.59375 160.00000,300.63407 160.00000,358.59375 C 160.00000,476.50415 278.91857,507.43251 359.96875,624.00000 C 366.52868,614.08205 220.00000,478.47309 220.00000,378.59375 C 220.00000,320.63407 267.04033,273.59375 325.00000,273.59375 C 325.50453,273.59375 325.99718,273.64912 326.50000,273.65625 C 309.22436,261.07286 288.00557,253.59374 265.00000,253.59375 z " id="path220" sodipodi:nodetypes="ccccccc" style="fill:#e6e6e6;fill-opacity:0.64556962;stroke:none;stroke-width:18.700001;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000"/>
-</g>
-</svg>
diff --git a/demos/embedded/desktopservices/resources/message.png b/demos/embedded/desktopservices/resources/message.png
deleted file mode 100644
index 78917c7..0000000
--- a/demos/embedded/desktopservices/resources/message.png
+++ /dev/null
Binary files differ
diff --git a/demos/embedded/desktopservices/resources/music.png b/demos/embedded/desktopservices/resources/music.png
deleted file mode 100644
index cc569cb..0000000
--- a/demos/embedded/desktopservices/resources/music.png
+++ /dev/null
Binary files differ
diff --git a/demos/embedded/desktopservices/resources/photo.png b/demos/embedded/desktopservices/resources/photo.png
deleted file mode 100644
index ac81cf3..0000000
--- a/demos/embedded/desktopservices/resources/photo.png
+++ /dev/null
Binary files differ