module: ‘code_AP.py’

Allow the user to manage Access Points in an independent module. This file is specifically dedicated to IHM_AP.py, UI file for the module of Access Points management.

class gwa.code_AP.APController(main=None, parent=None)[source]

Bases: PyQt4.QtGui.QWizard

Create the wizard. Assign functions to the various buttons.

addAP()[source]

Add an Access Point into the database.

clearAPInfo()[source]

Clear the user filled fields. Called whenever the Access Points list is updated.

completionAP(ssid, mac)[source]

auto completion

connect_signals()[source]

Create action listeners for the UI. Example: self.connect(self.ui.toolButton_mesure_campagne_ajouter, QtCore.SIGNAL(“clicked()”), self.ajouterCampagne) When the bouton “toolButton_mesure_campagne_ajouter” is clicked, function “ajouterCampagne()” is called.

displayAPInfo()[source]

Display the Access Point’s parameters when an element is selected in the list.

displayAPList()[source]

Display the list of Access Points in the UI.

displayEnvironmentList()[source]

Display the list of environments in the UI.

displayLocationList()[source]

Display the list of locations in the UI.

editAP()[source]

Edit an Access Point’s parameters in the database.

enableAddAP()[source]

Activates / deactivates the button to add Access Points. The button becomes active only when the user fills the required fields (SSID, MAC address, coordinates).

enableEditAP(itemClicked)[source]

Activates / deactivates the button “toolButton_ap_modifier” whenever an Access Point is selected in the list.

enableRemoveAP(itemClicked)[source]

Activates / deactivates the button “toolButton_ap_supprimer” whenever an Access Point is selected in the list.

getData()[source]

scan the AP

initVariables()[source]

Initialize the variables necessary to do measures and connect to the database.

loadAP()[source]

load the AP

reinitialize(resultCode)[source]

Switch to the application master menu and reinitializes the QWizard module.

removeAP()[source]

Remove an Access Point from the database.

selectAP()[source]

Select an AP from the scanned list

setCurrentAP()[source]

Retrieves the ID depending on the Access Point selected in the UI.

setCurrentEnvironment()[source]

Retrieve the name and database ID of the selected environment.

setCurrentLocation()[source]

Retrieve the name and database ID of the selected location. Set a global variable “self.id_place”.

switchPage()[source]

Called whenever a UI page change occurs to initialize: - Lists fulfillment (pages 1 to 4) - Measurements (page 5) - Completion of the measures (page 6)

validateCurrentPage()[source]

Reimplementation of the function “validateCurrentPage” which implements by default “QWizardPage::validatePage()” on “currentPage()”. @return: [ True: page validated + ID changed ==> panel switch / False: page non-compliant + same ID ==> no panel switch ]

verifyAPInfo(mac, ap_x, ap_y, ap_z, essid, appel)[source]

Integrity check of the user’s input before insertion in the database. Verify the MAC address’ format, the coordinates’ consistency in a location and duplicates of an entry with the same SSID and MAC address. @param appel: by which function this function is call [ True: from addAP() / False: from editAP()]

Previous topic

module: ‘code_lieu.py’

Next topic

module: ‘code_extract.py’

This Page