|
@@ -23,19 +23,19 @@
|
|
|
23
23
|
namespace Thunder {
|
|
24
24
|
namespace Plugin {
|
|
25
25
|
|
|
26
26
|
namespace {
|
|
27
27
|
|
|
28
|
-
static Metadata<OutOfProcessPreconditions>metadata(
|
|
28
|
+
static Metadata<OutOfProcessPreconditions> metadata(
|
|
29
29
|
// Version
|
|
30
30
|
1, 0, 0,
|
|
31
31
|
// Preconditions
|
|
32
|
-
{
|
|
32
|
+
{subsystem::GRAPHICS},
|
|
33
33
|
// Terminations
|
|
34
|
-
{
|
|
34
|
+
{subsystem::NOT_GRAPHICS},
|
|
35
35
|
// Controls
|
|
36
|
-
{
|
|
36
|
+
{subsystem::TIME}
|
|
37
37
|
);
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
const string OutOfProcessPreconditions::Initialize(PluginHost::IShell* service) {
|
|
41
41
|
string message;
|
|
@@ -19,11 +19,10 @@
|
|
|
19
19
|
|
|
20
20
|
#pragma once
|
|
21
21
|
|
|
22
22
|
#include "Module.h"
|
|
23
23
|
#include <interfaces/IMessageControl.h>
|
|
24
|
-
#include <interfaces/json/JMessageControl.h>
|
|
25
24
|
|
|
26
25
|
namespace Thunder {
|
|
27
26
|
namespace Plugin {
|
|
28
27
|
|
|
29
28
|
class OutOfProcessPreconditions : public PluginHost::IPlugin, public PluginHost::JSONRPC {
|
|
@@ -42,10 +41,11 @@ namespace Plugin {
|
|
|
42
41
|
, _notification(*this)
|
|
43
42
|
{
|
|
44
43
|
}
|
|
45
44
|
|
|
46
45
|
~OutOfProcessPreconditions() override = default;
|
|
46
|
+
private:
|
|
47
47
|
class Notification : public RPC::IRemoteConnection::INotification {
|
|
48
48
|
public:
|
|
49
49
|
Notification(const Notification&) = delete;
|
|
50
50
|
Notification& operator=(const Notification&) = delete;
|
|
51
51
|
Notification(Notification&&) = delete;
|
|
@@ -40,10 +40,15 @@ namespace Plugin {
|
|
|
40
40
|
|
|
41
41
|
BEGIN_INTERFACE_MAP(OutOfProcessPreconditionsImplementation)
|
|
42
42
|
INTERFACE_ENTRY(Exchange::IMessageControl)
|
|
43
43
|
END_INTERFACE_MAP
|
|
44
44
|
|
|
45
|
+
// Type aliases copied from interface headers
|
|
46
|
+
using IControlIterator = RPC::IIteratorType<Control, Exchange::ID_MESSAGE_CONTROL_ITERATOR>;
|
|
47
|
+
using IStringIterator = RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>;
|
|
48
|
+
using messagetype = Core::Messaging::Metadata::type;
|
|
49
|
+
|
|
45
50
|
// IMessageControl methods
|
|
46
51
|
|
|
47
52
|
Core::hresult Enable(const messagetype /* type */, const string& /* category */, const string& /* module */, const bool /* enabled */) override {
|
|
48
53
|
return Core::ERROR_NONE;
|
|
49
54
|
}
|
|
@@ -53,10 +58,11 @@ namespace Plugin {
|
|
|
53
58
|
}
|
|
54
59
|
|
|
55
60
|
Core::hresult Controls(const string& /* module */ /* @index */, IControlIterator*& /* control */ /* @out */) const override {
|
|
56
61
|
return Core::ERROR_NONE;
|
|
57
62
|
}
|
|
63
|
+
|
|
58
64
|
private:
|
|
59
65
|
|
|
60
66
|
};
|
|
61
67
|
|
|
62
68
|
SERVICE_REGISTRATION(OutOfProcessPreconditionsImplementation, 1, 0)
|