forked from nemomobile-graveyard/meegotouch-systemui
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Changes: Separate volume user interface into an application extension
RevBy: TrustMe
- Loading branch information
Vesa Halttunen
committed
Feb 14, 2011
1 parent
149b929
commit 78d5329
Showing
26 changed files
with
241 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
usr/lib/meegotouch/applicationextensions/libsysuid-volume.so | ||
usr/share/meegotouch/applicationextensions/sysuid-volume.desktop |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
[Desktop Entry] | ||
Type=X-MeeGoApplicationExtension | ||
Name=Volume Extension | ||
|
||
[X-MeeGoApplicationExtension] | ||
Interface=com.meego.core.VolumeExtensionInterface/0.20 | ||
Extension=libsysuid-volume.so |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
MOC_DIR = .moc | ||
M_MGEN_OUTDIR = .gen | ||
OBJECTS_DIR = .obj | ||
LOCALLIBSDIR = ../../../lib | ||
|
||
include(../../../mconfig.pri) | ||
include(../../../localconfig.pri) | ||
|
||
TEMPLATE = lib | ||
CONFIG += plugin gui meegotouch system-ui link_pkgconfig | ||
QT += dbus | ||
INCLUDEPATH += \ | ||
../../libnotificationsystem \ | ||
../../systemui \ | ||
/usr/include/resource/qt4 | ||
|
||
QMAKE_LIBDIR += $$LOCALLIBSDIR | ||
|
||
STYLE_HEADERS += volumebarstyle.h | ||
|
||
HEADERS += \ | ||
volumeextension.h \ | ||
volumebarlogic.h \ | ||
volumebar.h \ | ||
volumebarwindow.h \ | ||
volumebarstyle.h \ | ||
../../systemui/closeeventeater.h | ||
|
||
SOURCES += \ | ||
volumeextension.cpp \ | ||
volumebarlogic.cpp \ | ||
volumebar.cpp \ | ||
volumebarwindow.cpp \ | ||
../../systemui/closeeventeater.cpp | ||
|
||
TARGET = $$qtLibraryTarget(sysuid-volume) | ||
DESTDIR = $$LOCALLIBSDIR | ||
|
||
contains(DEFINES, HAVE_QMSYSTEM) { | ||
PKGCONFIG += qmsystem2 | ||
} | ||
|
||
contains(DEFINES, HAVE_LIBRESOURCEQT) { | ||
PKGCONFIG += libresourceqt1 | ||
} | ||
|
||
PKGCONFIG += \ | ||
dbus-1 \ | ||
dbus-glib-1 | ||
|
||
target.path += $$M_APPLICATION_EXTENSION_DIR | ||
|
||
desktop_entry.path = $$M_APPLICATION_EXTENSION_DATA_DIR | ||
desktop_entry.files = *.desktop | ||
|
||
INSTALLS += \ | ||
target \ | ||
desktop_entry |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
/**************************************************************************** | ||
** | ||
** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). | ||
** All rights reserved. | ||
** Contact: Nokia Corporation ([email protected]) | ||
** | ||
** This file is part of systemui. | ||
** | ||
** If you have questions regarding the use of this file, please contact | ||
** Nokia at [email protected]. | ||
** | ||
** This library is free software; you can redistribute it and/or | ||
** modify it 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. | ||
** | ||
****************************************************************************/ | ||
#include <QDebug> | ||
#include <MLibrary> | ||
#include "volumeextension.h" | ||
#include "volumebarlogic.h" | ||
|
||
Q_EXPORT_PLUGIN2(sysuid-volume, VolumeExtension) | ||
|
||
VolumeExtension::VolumeExtension() : | ||
volumeBarLogic(NULL) | ||
{ | ||
qDebug() << "XX VOLUME EXTENSION INSTANTIATION"; | ||
} | ||
|
||
VolumeExtension::~VolumeExtension() | ||
{ | ||
delete volumeBarLogic; | ||
} | ||
|
||
bool VolumeExtension::initialize(const QString &) | ||
{ | ||
qDebug() << "XX VOLUME EXTENSION INITIALIZATION"; | ||
volumeBarLogic = new VolumeBarLogic(this); | ||
return true; | ||
} | ||
|
||
QGraphicsWidget *VolumeExtension::widget() | ||
{ | ||
return NULL; | ||
} | ||
|
||
M_LIBRARY |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
/**************************************************************************** | ||
** | ||
** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). | ||
** All rights reserved. | ||
** Contact: Nokia Corporation ([email protected]) | ||
** | ||
** This file is part of systemui. | ||
** | ||
** If you have questions regarding the use of this file, please contact | ||
** Nokia at [email protected]. | ||
** | ||
** This library is free software; you can redistribute it and/or | ||
** modify it 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. | ||
** | ||
****************************************************************************/ | ||
|
||
#ifndef VOLUMEEXTENSION_H | ||
#define VOLUMEEXTENSION_H | ||
|
||
#include "volumeextensioninterface.h" | ||
#include <QObject> | ||
|
||
class VolumeBarLogic; | ||
|
||
class VolumeExtension : public QObject, public VolumeExtensionInterface | ||
{ | ||
Q_OBJECT | ||
Q_INTERFACES(VolumeExtensionInterface MApplicationExtensionInterface) | ||
|
||
public: | ||
VolumeExtension(); | ||
virtual ~VolumeExtension(); | ||
|
||
//! Methods derived from MApplicationExtensionInterface | ||
virtual bool initialize(const QString &interface); | ||
virtual QGraphicsWidget *widget(); | ||
|
||
private: | ||
VolumeBarLogic *volumeBarLogic; | ||
}; | ||
|
||
#endif // VOLUMEEXTENSION_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
/**************************************************************************** | ||
** | ||
** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). | ||
** All rights reserved. | ||
** Contact: Nokia Corporation ([email protected]) | ||
** | ||
** This file is part of systemui. | ||
** | ||
** If you have questions regarding the use of this file, please contact | ||
** Nokia at [email protected]. | ||
** | ||
** This library is free software; you can redistribute it and/or | ||
** modify it 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. | ||
** | ||
****************************************************************************/ | ||
|
||
#ifndef VOLUMEEXTENSIONINTERFACE_H | ||
#define VOLUMEEXTENSIONINTERFACE_H | ||
|
||
#include <QObject> | ||
#include <mapplicationextensioninterface.h> | ||
|
||
/** | ||
* VolumeExtensionInterface is the base class for volume extension classes. | ||
* | ||
* Extension developers need to implement this interface in their extension binary | ||
* and export their implementation from the binary. The host application will maintain | ||
* an inventory of available extensions and instantiate them using this interface | ||
* when needed. | ||
*/ | ||
class VolumeExtensionInterface : public MApplicationExtensionInterface | ||
{ | ||
public: | ||
/*! | ||
* Destructor. | ||
*/ | ||
virtual ~VolumeExtensionInterface() {} | ||
}; | ||
|
||
Q_DECLARE_INTERFACE(VolumeExtensionInterface, "com.meego.core.VolumeExtensionInterface/0.20") | ||
|
||
#endif // VOLUMEEXTENSIONINTERFACE_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.