~ubuntu-branches/ubuntu/trusty/digikam/trusty

« back to all changes in this revision

Viewing changes to extra/kipi-plugins/dlnaexport/extra/avtest/mediarenderer_window.h

  • Committer: Package Import Robot
  • Author(s): Rohan Garg
  • Date: 2012-11-26 18:24:20 UTC
  • mfrom: (1.9.1) (3.1.23 experimental)
  • Revision ID: package-import@ubuntu.com-20121126182420-qoy6z0nx4ai0wzcl
Tags: 4:3.0.0~beta3-0ubuntu1
* New upstream release
  - Add build-deps :  libhupnp-dev, libqtgstreamer-dev, libmagickcore-dev
* Merge from debian, remaining changes:
  - Make sure libqt4-opengl-dev, libgl1-mesa-dev and libglu1-mesa-dev only
    install on i386,amd64 and powerpc
  - Depend on libtiff-dev instead of libtiff4-dev
  - Drop digikam breaks/replaces kipi-plugins-common since we're past the
    LTS release now
  - digikam to recommend mplayerthumbs | ffmpegthumbs. We currently only
    have latter in the archives, even though former is also supposed to
    be part of kdemultimedia. (LP: #890059)
  - kipi-plugins to recommend www-browser rather than konqueror directly
    since 2.8 no direct usage of konqueror is present in the flickr
    plugin anymore (LP: #1011211)
  - Keep kubuntu_mysqld_executable_name.diff
  - Don't install libkipi translations
  - Keep deps on libcv-dev, libcvaux-dev
  - Keep split packaging of libraries
  - Replace icons from KDE 3 time in debian/xpm.d/*.xpm with the new
    versions (LP: #658047)
* Update debian/not-installed

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 *  Copyright (C) 2011 Tuomo Penttinen, all rights reserved.
 
3
 *
 
4
 *  Author: Tuomo Penttinen <tp@herqq.org>
 
5
 *
 
6
 *  This file is part of an application named HUpnpAvSimpleTestApp
 
7
 *  used for demonstrating how to use the Herqq UPnP A/V (HUPnPAv) library.
 
8
 *
 
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.
 
13
 *
 
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.
 
18
 *
 
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/>.
 
21
 */
 
22
 
 
23
#ifndef MEDIARENDERER_WINDOW_H_
 
24
#define MEDIARENDERER_WINDOW_H_
 
25
 
 
26
#include <HUpnpCore/HDeviceHost>
 
27
#include <HUpnpAv/HRendererConnectionManager>
 
28
 
 
29
#include <QtGui/QMainWindow>
 
30
 
 
31
class QNetworkAccessManager;
 
32
 
 
33
namespace Ui {
 
34
    class MediaRendererWindow;
 
35
}
 
36
 
 
37
class MediaRendererWindow;
 
38
 
 
39
//
 
40
//
 
41
//
 
42
class RendererConnectionManager :
 
43
    public Herqq::Upnp::Av::HRendererConnectionManager
 
44
{
 
45
private:
 
46
 
 
47
    MediaRendererWindow* m_owner;
 
48
 
 
49
protected:
 
50
 
 
51
    virtual Herqq::Upnp::Av::HRendererConnection* doCreate(
 
52
        const QString& contentFormat, qint32 connectionId);
 
53
 
 
54
public:
 
55
 
 
56
    RendererConnectionManager(MediaRendererWindow* owner);
 
57
};
 
58
 
 
59
//
 
60
//
 
61
//
 
62
class MediaRendererWindow :
 
63
    public QMainWindow
 
64
{
 
65
Q_OBJECT
 
66
friend class RendererConnectionManager;
 
67
 
 
68
private Q_SLOTS:
 
69
 
 
70
    void currentConnectionIDsChanged(
 
71
        Herqq::Upnp::HServerStateVariable*,
 
72
        const Herqq::Upnp::HStateVariableEvent&);
 
73
 
 
74
    void propertyChanged(
 
75
        Herqq::Upnp::Av::HRendererConnectionInfo*,
 
76
        const Herqq::Upnp::Av::HRendererConnectionEventInfo&);
 
77
 
 
78
private:
 
79
 
 
80
    Ui::MediaRendererWindow *m_ui;
 
81
    Herqq::Upnp::HDeviceHost* m_deviceHost;
 
82
 
 
83
    Herqq::Upnp::Av::HAbstractMediaRendererDevice* m_mediaRenderer;
 
84
    RendererConnectionManager* m_mm;
 
85
    QNetworkAccessManager* m_nam;
 
86
 
 
87
protected:
 
88
 
 
89
    virtual void changeEvent(QEvent*);
 
90
    virtual void closeEvent(QCloseEvent*);
 
91
 
 
92
public:
 
93
 
 
94
    MediaRendererWindow(QWidget *parent = 0);
 
95
    virtual ~MediaRendererWindow();
 
96
 
 
97
Q_SIGNALS:
 
98
 
 
99
    void closed();
 
100
};
 
101
 
 
102
#endif // MEDIARENDERER_WINDOW_H_