TTKMusicPlayer  4.3.0.0
TTKMusicPlayer imitates Kugou UI, the music player uses of qmmp core library based on Qt for windows and linux
ttkinitialization.h
Go to the documentation of this file.
1 #ifndef TTKINITIALIZATION_H
2 #define TTKINITIALIZATION_H
3 
4 /***************************************************************************
5  * This file is part of the TTK Library Module project
6  * Copyright (C) 2015 - 2026 Greedysky Studio
7 
8  * This program is free software; you can redistribute it and/or modify
9  * it under the terms of the GNU Lesser General Public License as published by
10  * the Free Software Foundation; either version 3 of the License, or
11  * (at your option) any later version.
12 
13  * This program is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16  * GNU Lesser General Public License for more details.
17 
18  * You should have received a copy of the GNU Lesser General Public License along
19  * with this program; If not, see <http://www.gnu.org/licenses/>.
20  ***************************************************************************/
21 
22 #include "ttkobject.h"
23 #include "ttkmoduleexport.h"
24 
28 namespace TTK
29 {
30  enum Attribute
31  {
32  UseLog = 0x0001,
33  ScaleFactor = 0x0002,
34  UseXCB = 0x0004,
35  DisbaleFFmpeg = 0x0008,
36  All = 0x000F,
37  };
38 
43 }
44 
45 #define TTK_REGISTER_ORGANIZATION(ORG) \
46  QCoreApplication::setOrganizationName(ORG ## _NAME); \
47  QCoreApplication::setOrganizationDomain(ORG ## _COME_NAME); \
48  QCoreApplication::setApplicationName(ORG ## _NAME);
49 
50 class TTKDumper;
51 typedef void (*TTKCleanFunctor)(void);
52 
57 {
58 public:
63  TTKInitialization(const TTKCleanFunctor &functor);
68 
72  void generateFont();
76  void codecForLocale();
77 
81  bool argumentValid(const QString &arg);
85  void execute();
89  void execute(const QStringList &arguments);
90 
91 private:
93 
94 };
95 
96 #endif // TTKINITIALIZATION_H
#define TTK_MODULE_EXPORT
The class of the ttk dumper.
Definition: ttkdumper.h:39
TTK_MODULE_EXPORT bool execute(const QString &path)
The class of the ttk initialization.
void(* TTKCleanFunctor)(void)
The namespace of the application object.
Definition: ttkcompat.h:24
TTK_MODULE_EXPORT void initialize(TTK::Attribute attr)