digiKam
dmediaserver.h
Go to the documentation of this file.
1
/* ============================================================
2
*
3
* This file is a part of digiKam project
4
* https://www.digikam.org
5
*
6
* Date : 2017-09-24
7
* Description : a media server to export collections through DLNA.
8
*
9
* Copyright (C) 2017-2022 by Gilles Caulier <caulier dot gilles at gmail dot com>
10
*
11
* This program is free software; you can redistribute it
12
* and/or modify it under the terms of the GNU General
13
* Public License as published by the Free Software Foundation;
14
* either version 2, or (at your option) any later version.
15
*
16
* This program is distributed in the hope that it will be useful,
17
* but WITHOUT ANY WARRANTY; without even the implied warranty of
18
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19
* GNU General Public License for more details.
20
*
21
* ============================================================ */
22
23
#ifndef DIGIKAM_DMEDIA_SERVER_H
24
#define DIGIKAM_DMEDIA_SERVER_H
25
26
// Qt includes
27
28
#include <QObject>
29
#include <QString>
30
#include <QUrl>
31
#include <QMap>
32
#include <QList>
33
34
namespace
DigikamGenericMediaServerPlugin
35
{
36
38
typedef
QMap<QString, QList<QUrl> >
MediaServerMap
;
39
40
class
DMediaServer
:
public
QObject
41
{
42
Q_OBJECT
43
44
public
:
45
46
explicit
DMediaServer
(QObject*
const
parent =
nullptr
);
47
~DMediaServer
()
override
;
48
53
bool
init
(
int
port = 0);
54
58
void
addAlbumsOnServer
(
const
MediaServerMap
& map);
59
60
private
:
61
62
class
Private;
63
Private*
const
d;
64
65
private
:
66
67
Q_DISABLE_COPY(
DMediaServer
)
68
};
69
70
}
// namespace DigikamGenericMediaServerPlugin
71
72
#endif
// DIGIKAM_DMEDIA_SERVER_H
DigikamGenericMediaServerPlugin::DMediaServer
Definition:
dmediaserver.h:41
DigikamGenericMediaServerPlugin::DMediaServer::init
bool init(int port=0)
Definition:
dmediaserver.cpp:152
DigikamGenericMediaServerPlugin::DMediaServer::addAlbumsOnServer
void addAlbumsOnServer(const MediaServerMap &map)
Definition:
dmediaserver.cpp:178
DigikamGenericMediaServerPlugin::DMediaServer::~DMediaServer
~DMediaServer() override
Definition:
dmediaserver.cpp:141
DigikamGenericMediaServerPlugin::DMediaServer::DMediaServer
DMediaServer(QObject *const parent=nullptr)
Definition:
dmediaserver.cpp:132
DigikamGenericMediaServerPlugin
Definition:
dmediaserverdlg.cpp:54
DigikamGenericMediaServerPlugin::MediaServerMap
QMap< QString, QList< QUrl > > MediaServerMap
A kind of map of albums with urls contents to share with DLNA media server.
Definition:
dmediaserver.h:38
core
dplugins
generic
tools
mediaserver
server
dmediaserver.h
Generated by
1.9.1