Vous êtes sur la page 1sur 4

MQA Agent new licensing mechanism Development Step 1 Observer(s) start process

CServer
RestartObserverAfterNewConfig

CConfigXMLContentHandler

CLicenseXMLContentHandler
New class to be created that is responsable for reading the license.dat file and supply info about it, observer names and state are stored in a generic way. (similar to CConfigXMLContentHandler...)

CObserverContainer RemoveObserver AddObserver


In addition to add the observers that are defined in the config file this function is modified to search in the license file if the license for each observer to add is enabled. Note: In case of omission the observer license is considered enabled.

Observers Started

Note: During development a new license.dat file can be manually put on the phone to test this process before download related changes are implemented.

MQA Agent new licensing mechanism Development Step 2 - License Validation & related changes
MQA AdminGUI CAppUi
ShowActivationCodeQuery IfRequiredL
This function was asking for manual user input of act. Code, is removed.

MQA Server CServer


IsActivationFileValidL
Func. to be adapted to the new format Note: Must return true if no license file yet, or initial download process will not start.

VerifyActivationCodeL
Verification func. Called when the client is started. Warns the user if a wrong activation code is in license.dat file that came from the server.

WriteActivationFileL
To be removed

IsActivationCodeValid
Func. Will be changed to verify the act. Code in the license.dat file

CDocument
ActivateL
Function that currently send the user supplied activation code to the server, to be removed.

CServerSession
HandleActivationAttemptL
To be removed.

VerifyActivationL
New func. That will ask the server if the activation code in license.dat is valid.

HandleActivationVerificationL
New func. That will check if the activation code in license.dat is valid.

MQA Agent new licensing mechanism Development Step 3 - License file download

CServer

CLogSender
StartAutomaticLogSending

SendLog
... FetchNewConfig

MQA WEB Server

FetchNewLicense
New funcion to download the license.dat file, similar to the actual function that downloads the config file.

The process to update the Observers after the log is sent Is already in place ( due to Possible config changes )

MQA Agent new licensing mechanism Open Issues / Doubts


Currentely the Watchdog is verifing if the license file exists, and only if so it lauches MQA, should this verification be mantained with the new licensing mechanism ? What kind of message to display to the user if the license file is not correct ? Should be implement any special validation for the case where the license.dat is never downloaded ? What to do, ask the user to uninstall ?