Exemple #1
0
    def customEvent(self, notification):
        """ Handles the notifications """

        string = QString(notification.string)
        debug("Received notification: " + str(string))

        if string.contains("configure"):
            self.configure()

        elif string.contains("exit"):
            cleanup(None, None)

        elif string.contains("engineStateChange: play"):
            self.engineStatePlay()

        elif string.contains("engineStateChange: idle"):
            self.engineStateIdle()

        elif string.contains("engineStateChange: pause"):
            self.engineStatePause()

        elif string.contains("engineStateChange: empty"):
            self.engineStatePause()

        elif string.contains("trackChange"):
            self.trackChange()

        else:
            debug("Unknown notification: " + str(string) + " -> ignoring")
Exemple #2
0
    def customEvent( self, notification ):
        """ Handles the notifications """

        string = QString(notification.string)
        debug( "Received notification: " + str( string ) )

        if string.contains( "configure" ):
            self.configure()

        elif string.contains( "exit" ):
            cleanup(None,None)

        elif string.contains( "engineStateChange: play" ):
            self.engineStatePlay()

        elif string.contains( "engineStateChange: idle" ):
            self.engineStateIdle()

        elif string.contains( "engineStateChange: pause" ):
            self.engineStatePause()

        elif string.contains( "engineStateChange: empty" ):
            self.engineStatePause()

        elif string.contains( "trackChange" ):
            self.trackChange()

        else:
            debug( "Unknown notification: " + str(string) + " -> ignoring")
Exemple #3
0
def safepassword(data):
    if len(data)<10:
        return False
    if string.contains(data.upper()):

            return True
        else:
            return False
    else: