digiKam
databaseserverstarter.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 : 2010-01-08
7  * Description : database server starter
8  *
9  * Copyright (C) 2009-2010 by Holger Foerster <Hamsi2k at freenet dot de>
10  * Copyright (C) 2016 by Swati Lodha <swatilodha27 at gmail dot com>
11  *
12  * This program is free software; you can redistribute it
13  * and/or modify it under the terms of the GNU General
14  * Public License as published by the Free Software Foundation;
15  * either version 2, or (at your option)
16  * any later version.
17  *
18  * This program is distributed in the hope that it will be useful,
19  * but WITHOUT ANY WARRANTY; without even the implied warranty of
20  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21  * GNU General Public License for more details.
22  *
23  * ============================================================ */
24 
25 #ifndef DIGIKAM_DATABASE_SERVER_STARTER_H
26 #define DIGIKAM_DATABASE_SERVER_STARTER_H
27 
28 // Qt includes
29 
30 #include <QString>
31 
32 // Local includes
33 
34 #include "digikam_export.h"
35 #include "databaseservererror.h"
36 #include "dbengineparameters.h"
37 
38 namespace Digikam
39 {
40 
41 class DIGIKAM_EXPORT DatabaseServerStarter : public QObject
42 {
43  Q_OBJECT
44 
45 public:
46 
50  static DatabaseServerStarter* instance();
51 
52  DatabaseServerError startServerManagerProcess(const DbEngineParameters& parameters) const;
53  void stopServerManagerProcess();
54 
55 private:
56 
57  // Disable
59  explicit DatabaseServerStarter(QObject*) = delete;
60  ~DatabaseServerStarter() override;
61 
62 private:
63 
64  class Private;
65  Private* const d;
66 
67  friend class DatabaseServerStarterCreator;
68 };
69 
70 } // namespace Digikam
71 
72 #endif // DIGIKAM_DATABASE_SERVER_STARTER_H
Definition: databaseservererror.h:41
Definition: databaseserverstarter.h:42
Definition: dbengineparameters.h:49
Definition: datefolderview.cpp:43