digiKam
dmediaserverdlg.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 : 2012-05-28
7  * Description : Media Server configuration dialog to share a single list of files
8  *
9  * Copyright (C) 2012-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_DLG_H
24 #define DIGIKAM_DMEDIA_SERVER_DLG_H
25 
26 // Qt includes
27 
28 #include <QUrl>
29 
30 // Local includes
31 
32 #include "dinfointerface.h"
33 #include "dplugindialog.h"
34 
35 using namespace Digikam;
36 
38 {
39 
41 {
42  Q_OBJECT
43 
44 public:
45 
46  explicit DMediaServerDlg(QObject* const parent,
47  DInfoInterface* const iface = nullptr);
48  ~DMediaServerDlg() override;
49 
50 private:
51 
52  void readSettings();
53  void saveSettings();
54  void updateServerStatus();
55  bool setMediaServerContents();
56  void startMediaServer();
57 
58 private Q_SLOTS:
59 
60  void accept() override;
61  void slotToggleMediaServer();
62  void slotSelectionChanged();
63 
64 private:
65 
66  // Disable
67  explicit DMediaServerDlg(QWidget*) = delete;
68 
69 private:
70 
71  class Private;
72  Private* const d;
73 };
74 
75 } // namespace DigikamGenericMediaServerPlugin
76 
77 #endif // DIGIKAM_DMEDIA_SERVER_DLG_H
Definition: dmediaserverdlg.h:41
Definition: dinfointerface.h:56
Definition: dplugindialog.h:42
Definition: dmediaserverdlg.cpp:54
Definition: datefolderview.cpp:43