![]() |
Home · All Namespaces · All Classes |
00001 /**************************************************************************** 00002 ** 00003 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). 00004 ** All rights reserved. 00005 ** Contact: Nokia Corporation (directui@nokia.com) 00006 ** 00007 ** This file is part of systemui. 00008 ** 00009 ** If you have questions regarding the use of this file, please contact 00010 ** Nokia at directui@nokia.com. 00011 ** 00012 ** This library is free software; you can redistribute it and/or 00013 ** modify it under the terms of the GNU Lesser General Public 00014 ** License version 2.1 as published by the Free Software Foundation 00015 ** and appearing in the file LICENSE.LGPL included in the packaging 00016 ** of this file. 00017 ** 00018 ****************************************************************************/ 00019 00020 #ifndef NGFADAPTER_H_ 00021 #define NGFADAPTER_H_ 00022 00023 #include <QObject> 00024 00025 #include <glib.h> 00026 #include <dbus/dbus.h> 00027 #include <dbus/dbus-glib-lowlevel.h> 00028 00029 #ifdef HAVE_LIBNGF 00030 #include <libngf/client.h> 00031 #endif 00032 00043 class NGFAdapter : public QObject 00044 { 00045 Q_OBJECT 00046 00047 public: 00048 00052 NGFAdapter(); 00053 00057 ~NGFAdapter(); 00058 00068 uint play(const QString &id); 00069 00076 void stop(uint eventId); 00077 00084 bool isValid(); 00085 00086 00087 private: 00088 #ifdef HAVE_LIBNGF 00089 00090 NgfClient* client; 00091 00093 DBusConnection* connection; 00094 #endif 00095 }; 00096 00097 #endif /* NGFADAPTER_H_ */
| Copyright © 2010 Nokia Corporation | Generated on Thu Nov 4 2010 18:19:34 Doxygen 1.7.1 |
MeeGo Touch |
