lecui 1.0.0-alpha.20
lecui C++ user interface library
instance.h
1//
2// instance.h - instance interface
3//
4// lecui user interface library, part of the liblec library
5// Copyright (c) 2019 Alec Musasa (alecmus at live dot com)
6//
7// Released under the MIT license. For full details see the
8// file LICENSE.txt
9//
10
11#pragma once
12
13#if defined(LECUI_EXPORTS)
14#include "form.h"
15#else
16#include <liblec/lecui/form.h>
17#endif
18
19namespace liblec {
20 namespace lecui {
22 class lecui_api instance_manager {
23 public:
38 instance_manager(form& fm, const std::string& guid);
39
42
50 bool send_data(const std::string& guid, const std::string& data,
51 const long& timeout_milliseconds, std::string& error);
52
53 private:
54 class impl;
55 impl& _d;
56
57 // Default constructor and copying an object of this class are not allowed
58 instance_manager() = delete;
59 instance_manager(const instance_manager&) = delete;
60 instance_manager& operator=(const instance_manager&) = delete;
61 };
62 }
63}
Form base class. The user must inherit from this class and call one of the two constructors from its ...
Definition: form.h:122
Manage application instances.
Definition: instance.h:22
bool send_data(const std::string &guid, const std::string &data, const long &timeout_milliseconds, std::string &error)
Send data to another application instance.
instance_manager(form &fm, const std::string &guid)
Class constructor.
~instance_manager()
Class destructor.
Top level namespace for the liblec libraries.
Definition: appearance.h:19