@@ -20,22 +20,22 @@ QvPlugin_EventHandler(SimpleEventHandler, Connectivity)
20
20
QStringList actions;
21
21
switch (pluginEvent.eventType )
22
22
{
23
- case Events::Connectivity::QvConnecticity_Connected :
23
+ case Events::Connectivity::Connected :
24
24
{
25
25
actions << settings.afterConnection .split (QRegExp (" [\r\n ]" ), QString::SkipEmptyParts);
26
26
break ;
27
27
}
28
- case Events::Connectivity::QvConnecticity_Connecting :
28
+ case Events::Connectivity::Connecting :
29
29
{
30
30
actions << settings.beforeConnection .split (QRegExp (" [\r\n ]" ), QString::SkipEmptyParts);
31
31
break ;
32
32
}
33
- case Events::Connectivity::QvConnecticity_Disconnected :
33
+ case Events::Connectivity::Disconnected :
34
34
{
35
35
actions << settings.afterDisConnection .split (QRegExp (" [\r\n ]" ), QString::SkipEmptyParts);
36
36
break ;
37
37
}
38
- case Events::Connectivity::QvConnecticity_Disconnecting :
38
+ case Events::Connectivity::Disconnecting :
39
39
{
40
40
actions << settings.beforeDisConnection .split (QRegExp (" [\r\n ]" ), QString::SkipEmptyParts);
41
41
break ;
@@ -76,12 +76,12 @@ QvPlugin_EventHandler(SimpleEventHandler, SystemProxy)
76
76
QStringList actions;
77
77
switch (pluginEvent.systemProxyState )
78
78
{
79
- case Events::SystemProxy::SystemProxyState_SetProxy :
79
+ case Events::SystemProxy::SetProxy :
80
80
{
81
81
actions << settings.setSystemProxy .split (QRegExp (" [\r\n ]" ), QString::SkipEmptyParts);
82
82
break ;
83
83
}
84
- case Events::SystemProxy::SystemProxyState_ClearProxy :
84
+ case Events::SystemProxy::ClearProxy :
85
85
{
86
86
actions << settings.clearSystemProxy .split (QRegExp (" [\r\n ]" ), QString::SkipEmptyParts);
87
87
break ;
@@ -119,26 +119,31 @@ QvPlugin_EventHandler(SimpleEventHandler, ConnectionEntry)
119
119
QStringList actions;
120
120
switch (pluginEvent.eventType )
121
121
{
122
- case Events::ConnectionEntry::ConnectionEvent_Created :
122
+ case Events::ConnectionEntry::Created :
123
123
{
124
124
actions << settings.connectionCreated .split (QRegExp (" [\r\n ]" ), QString::SkipEmptyParts);
125
125
break ;
126
126
}
127
- case Events::ConnectionEntry::ConnectionEvent_Deleted:
127
+ case Events::ConnectionEntry::FullyRemoved:
128
+ case Events::ConnectionEntry::RemovedFromGroup:
128
129
{
129
130
actions << settings.connectionDeleted .split (QRegExp (" [\r\n ]" ), QString::SkipEmptyParts);
130
131
break ;
131
132
}
132
- case Events::ConnectionEntry::ConnectionEvent_Renamed :
133
+ case Events::ConnectionEntry::Renamed :
133
134
{
134
135
actions << settings.connectionRenamed .split (QRegExp (" [\r\n ]" ), QString::SkipEmptyParts);
135
136
break ;
136
137
}
137
- case Events::ConnectionEntry::ConnectionEvent_Updated :
138
+ case Events::ConnectionEntry::Edited :
138
139
{
139
140
actions << settings.connectionUpdated .split (QRegExp (" [\r\n ]" ), QString::SkipEmptyParts);
140
141
break ;
141
142
}
143
+ case Events::ConnectionEntry::LinkedWithGroup:
144
+ {
145
+ break ;
146
+ }
142
147
}
143
148
for (const auto &action : actions)
144
149
{
0 commit comments