xtd - Reference Guide  0.1.0
Modern c++17/20 framework to create console, GUI and unit test applications on Windows, macOS, Linux, iOS and android.
Loading...
Searching...
No Matches
application_informations.h
Go to the documentation of this file.
1
4#pragma once
5#include <xtd/object.h>
6#include <xtd/ustring.h>
7
9namespace xtd {
11 namespace forms {
22 public:
25 static const xtd::ustring& company_name() {return instance().company_name_;}
28 static void company_name(const xtd::ustring& company_name) {instance().company_name_ = company_name;}
29
32 static xtd::ustring product_description() {return instance().product_description_;}
35 static void product_description(const xtd::ustring& product_description) {instance().product_description_ = product_description;}
36
39 static xtd::ustring product_name() {return instance().product_name_;}
42 static void product_name(const xtd::ustring& product_name) {instance().product_name_ = product_name;}
43
46 static xtd::ustring product_version() {return instance().product_version_;}
49 static void product_version(const xtd::ustring& product_version) {instance().product_version_ = product_version;}
50
51 private:
52 static application_informations& instance() {
55 }
56 application_informations() = default;
57 xtd::ustring company_name_;
58 xtd::ustring product_description_;
59 xtd::ustring product_name_;
60 xtd::ustring product_version_;
61 };
62 }
63}
Specifies the application informations.
Definition: application_informations.h:21
static void company_name(const xtd::ustring &company_name)
Sets the company name associated with the application.
Definition: application_informations.h:28
static const xtd::ustring & company_name()
Gets the company name associated with the application.
Definition: application_informations.h:25
static void product_version(const xtd::ustring &product_version)
Sets the product version associated with the application.
Definition: application_informations.h:49
static void product_description(const xtd::ustring &product_description)
Sets the product description associated with the application.
Definition: application_informations.h:35
static xtd::ustring product_description()
Gets the product description associated with the application.
Definition: application_informations.h:32
static xtd::ustring product_name()
Gets the product name associated with the application.
Definition: application_informations.h:39
static xtd::ustring product_version()
Gets the product version associated with the application.
Definition: application_informations.h:46
static void product_name(const xtd::ustring &product_name)
Sets the product name associated with the application.
Definition: application_informations.h:42
Supports all classes in the xtd class hierarchy and provides low-level services to derived classes....
Definition: object.h:26
Represents text as a sequence of UTF-8 code units.
Definition: ustring.h:48
The xtd::forms namespace contains classes for creating Windows-based applications that take full adva...
Definition: about_box.h:13
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition: system_report.h:17
Contains xtd::object class.
Contains xtd::ustring class.