SEGS  0.4.2
Super Entity Game Server
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ProjectDescriptor.h
Go to the documentation of this file.
1 /*
2  * SEGS - Super Entity Game Server
3  * http://www.segs.io/
4  * Copyright (c) 2006 - 2018 SEGS Team (see Authors.txt)
5  * This software is licensed! (See License.txt for details)
6  */
7 
8 #ifndef PROJECTDESCRIPTOR_H
9 #define PROJECTDESCRIPTOR_H
10 #include <QtCore/QObject>
11 #include <QtCore/QString>
12 
13 #include <vector>
14 
15 struct ProjectDescriptor;
16 struct AppVersion
17 {
18  QString m_os;
20  QString m_change_log;
21  QString m_manifest_url;
22  struct ProjectApp *m_app;
23 };
25 {
27  {
28  eOffline = 0,
32  };
33  QString m_name;
34  QString m_location;
37  int m_status;
41 };
42 
43 struct ProjectApp
44 {
45  QString m_name;
47  std::vector<AppVersion> m_versions;
49 };
50 
52 {
54  QString m_project_name;
55  std::vector<ProjectApp> m_apps;
56  std::vector<ServerDescriptor> m_servers;
57 
58  QString displayName() const { return m_project_name; }
59 };
61 {
62  std::vector<ProjectDescriptor> m_projects;
63 };
64 Q_DECLARE_METATYPE(ProjectList)
65 bool loadFrom(ProjectList &target, const QString &data);
66 bool loadFrom(ProjectApp &target, const QString &data);
67 #endif // PROJECTDESCRIPTOR_H
Definition: ProjectDescriptor.h:51
QString m_presentation_data
Definition: ProjectDescriptor.h:46
QString m_name
Definition: ProjectDescriptor.h:45
Definition: ProjectDescriptor.h:28
QString m_os
Definition: ProjectDescriptor.h:18
QString displayName() const
Definition: ProjectDescriptor.h:58
Definition: ProjectDescriptor.h:29
Definition: ProjectDescriptor.h:60
QString m_location
Definition: ProjectDescriptor.h:34
QString m_presentation_data
Definition: ProjectDescriptor.h:35
Definition: ProjectDescriptor.h:24
Definition: ProjectDescriptor.h:43
Definition: ProjectDescriptor.h:30
struct ProjectApp * m_app
Definition: ProjectDescriptor.h:22
std::vector< ServerDescriptor > m_servers
Definition: ProjectDescriptor.h:56
QString m_manifest_url
Definition: ProjectDescriptor.h:21
std::vector< ProjectDescriptor > m_projects
Definition: ProjectDescriptor.h:62
QString m_version_number
Definition: ProjectDescriptor.h:19
eServerStatus
Definition: ProjectDescriptor.h:26
QString m_change_log
Definition: ProjectDescriptor.h:20
QString m_name
Definition: ProjectDescriptor.h:33
const ProjectDescriptor * m_project
Definition: ProjectDescriptor.h:40
QString m_project_name
Definition: ProjectDescriptor.h:54
const ProjectDescriptor * m_project
Definition: ProjectDescriptor.h:48
Definition: ProjectDescriptor.h:16
bool loadFrom(BinStore *s, TextureAnim_Data &target)
Definition: anim_serializers.cpp:19
QString m_presentation_url
Definition: ProjectDescriptor.h:53
QString m_additional_manifest
Definition: ProjectDescriptor.h:36
int m_status
Definition: ProjectDescriptor.h:37
QString m_lowest_supported_version
Definition: ProjectDescriptor.h:38
Definition: ProjectDescriptor.h:31
std::vector< ProjectApp > m_apps
Definition: ProjectDescriptor.h:55
std::vector< AppVersion > m_versions
Definition: ProjectDescriptor.h:47
QString m_highest_supported_version
Definition: ProjectDescriptor.h:39