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 CONTROLPOINT_WINDOW_H
24
#define CONTROLPOINT_WINDOW_H
26
#include <HUpnpAv/HUpnpAv>
27
#include <HUpnpCore/HClientDevice>
29
#include <QtCore/QModelIndex>
30
#include <QtGui/QMainWindow>
32
class DataItemDisplay;
33
class ControlPointNavigator;
36
class ControlPointWindow;
42
class ControlPointWindow :
46
Q_DISABLE_COPY(ControlPointWindow)
50
Ui::ControlPointWindow* m_ui;
52
Herqq::Upnp::Av::HAvControlPoint* m_controlPoint;
54
ControlPointNavigator* m_controlpointNavigator;
56
DataItemDisplay* m_dataItemDisplay;
60
virtual void changeEvent(QEvent*);
61
virtual void closeEvent(QCloseEvent*);
65
void on_dataTableView_doubleClicked(const QModelIndex& index);
66
void mediaRendererOnline(Herqq::Upnp::Av::HMediaRendererAdapter*);
67
void mediaRendererOffline(Herqq::Upnp::Av::HMediaRendererAdapter*);
69
void mediaServerOnline(Herqq::Upnp::Av::HMediaServerAdapter*);
70
void mediaServerOffline(Herqq::Upnp::Av::HMediaServerAdapter*);
72
void on_navigatorTreeView_clicked(const QModelIndex&);
74
void objectsBrowsed(Herqq::Upnp::Av::HMediaBrowser*, const QSet<QString>&);
78
explicit ControlPointWindow(QWidget* parent = 0);
79
virtual ~ControlPointWindow();
83
void contentSourceRemoved(Herqq::Upnp::HClientDevice*);
87
#endif // CONTROLPOINT_WINDOW_H