/*
 *  Copyright (C) 2011 Tuomo Penttinen, all rights reserved.
 *
 *  Author: Tuomo Penttinen <tp@herqq.org>
 *
 *  This file is part of an application named HUpnpAvSimpleTestApp
 *  used for demonstrating how to use the Herqq UPnP A/V (HUPnPAv) library.
 *
 *  HUpnpAvSimpleTestApp is free software: you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation, either version 3 of the License, or
 *  (at your option) any later version.
 *
 *  HUpnpAvSimpleTestApp is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with HUpnpAvSimpleTestApp. If not, see <http://www.gnu.org/licenses/>.
 */

#ifndef MEDIASERVER_WINDOW_H
#define MEDIASERVER_WINDOW_H

#include <QMainWindow>
#include <QtCore/QPointer>

#include <HUpnpAv/HUpnpAv>
#include <HUpnpCore/HDeviceHost>

namespace Ui {
    class MediaServerWindow;
}

class AddContentDialog;

//
//
//
class MediaServerWindow :
    public QMainWindow
{
Q_OBJECT

private:

    Ui::MediaServerWindow* m_ui;
    Herqq::Upnp::HDeviceHost* m_deviceHost;

    Herqq::Upnp::Av::HFileSystemDataSource* m_datasource;

    QPointer<AddContentDialog> m_dlg;

private slots:

    void on_addContentButton_clicked();
    void addContenDlgtFinished();

    void on_addItemButton_clicked();

protected:

    virtual void changeEvent(QEvent*);
    virtual void closeEvent(QCloseEvent*);

public:

    MediaServerWindow(QWidget* parent = 0);
    virtual ~MediaServerWindow();

Q_SIGNALS:

    void closed();
};

#endif // MEDIASERVER_WINDOW_H
