23 def __init__(self, plugin): |
23 def __init__(self, plugin): |
24 """ |
24 """ |
25 Constructor |
25 Constructor |
26 |
26 |
27 @param plugin reference to the plugin object |
27 @param plugin reference to the plugin object |
28 @type RefactoringRopePlugin |
28 @type MqttMonitorPlugin |
29 """ |
29 """ |
30 ConfigurationPageBase.__init__(self) |
30 ConfigurationPageBase.__init__(self) |
31 self.setupUi(self) |
31 self.setupUi(self) |
32 self.setObjectName("MqttPage") |
32 self.setObjectName("MqttPage") |
33 |
33 |
45 self.__plugin.getPreferences("RecentTopicsNumber") |
45 self.__plugin.getPreferences("RecentTopicsNumber") |
46 ) |
46 ) |
47 |
47 |
48 def save(self): |
48 def save(self): |
49 """ |
49 """ |
50 Public slot to save the Rope Autocompletion configuration. |
50 Public slot to save the MQTT Monitor configuration. |
51 """ |
51 """ |
52 if self.mqttv31Button.isChecked(): |
52 if self.mqttv31Button.isChecked(): |
53 protocol = MqttProtocols.MQTTv31 |
53 protocol = MqttProtocols.MQTTv31 |
54 elif self.mqttv311Button.isChecked(): |
54 elif self.mqttv311Button.isChecked(): |
55 protocol = MqttProtocols.MQTTv311 |
55 protocol = MqttProtocols.MQTTv311 |