2
* Copyright (C) 2011 Tuomo Penttinen, all rights reserved.
4
* Author: Tuomo Penttinen <tp@herqq.org>
6
* This file is part of an application named HUpnpAvSimpleTestApp
7
* used for demonstrating how to use the Herqq UPnP A/V (HUPnPAv) library.
9
* HUpnpAvSimpleTestApp is free software: you can redistribute it and/or modify
10
* it under the terms of the GNU General Public License as published by
11
* the Free Software Foundation, either version 3 of the License, or
12
* (at your option) any later version.
14
* HUpnpAvSimpleTestApp is distributed in the hope that it will be useful,
15
* but WITHOUT ANY WARRANTY; without even the implied warranty of
16
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17
* GNU General Public License for more details.
19
* You should have received a copy of the GNU General Public License
20
* along with HUpnpAvSimpleTestApp. If not, see <http://www.gnu.org/licenses/>.
23
#ifndef MEDIASERVER_WINDOW_H
24
#define MEDIASERVER_WINDOW_H
26
#include <QtGui/QMainWindow>
27
#include <QtCore/QPointer>
29
#include <HUpnpAv/HUpnpAv>
30
#include <HUpnpCore/HDeviceHost>
33
class MediaServerWindow;
36
class AddContentDialog;
41
class MediaServerWindow :
48
Ui::MediaServerWindow* m_ui;
49
Herqq::Upnp::HDeviceHost* m_deviceHost;
51
Herqq::Upnp::Av::HFileSystemDataSource* m_datasource;
53
QPointer<AddContentDialog> m_dlg;
57
void on_addContentButton_clicked();
58
void addContenDlgtFinished();
62
virtual void changeEvent(QEvent*);
63
virtual void closeEvent(QCloseEvent*);
67
MediaServerWindow(QWidget* parent = 0);
68
virtual ~MediaServerWindow();
75
#endif // MEDIASERVER_WINDOW_H