xtd - Reference Guide  0.2.0
Modern c++17/20 framework to create console, GUI and unit test applications on Windows, macOS, Linux, iOS and android.
application_informations.h
Go to the documentation of this file.
1 #pragma once
5 #include <xtd/object.h>
6 #include <xtd/ustring.h>
7 
9 namespace 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() {
54  return application_informations;
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 }
static void product_description(const xtd::ustring &product_description)
Sets the product description associated with the application.
Definition: application_informations.h:35
static void product_version(const xtd::ustring &product_version)
Sets the product version associated with the application.
Definition: application_informations.h:49
The xtd namespace contains all fundamental classes to access Hardware, Os, System, and more.
Definition: system_report.h:17
Specifies the application informations.
Definition: application_informations.h:21
Represents text as a sequence of UTF-8 code units.
Definition: ustring.h:48
static xtd::ustring product_name()
Gets the product name associated with the application.
Definition: application_informations.h:39
static void company_name(const xtd::ustring &company_name)
Sets the company name associated with the application.
Definition: application_informations.h:28
Contains xtd::ustring class.
static xtd::ustring product_version()
Gets the product version associated with the application.
Definition: application_informations.h:46
static xtd::ustring product_description()
Gets the product description associated with the application.
Definition: application_informations.h:32
Contains xtd::object class.
Supports all classes in the xtd class hierarchy and provides low-level services to derived classes...
Definition: object.h:26
static void product_name(const xtd::ustring &product_name)
Sets the product name associated with the application.
Definition: application_informations.h:42
The xtd::forms namespace contains classes for creating Windows-based applications that take full adva...
Definition: about_box.h:13
static const xtd::ustring & company_name()
Gets the company name associated with the application.
Definition: application_informations.h:25