Esempio n. 1
0
 def validate_dbus_object(cls, path, state):
     application_name = PACKAGE_ID
     name = introspection.get_classname_from_path(path)
     if str(name) == application_name:
         if state['applicationName'][1] == application_name:
             return True
     return False
Esempio n. 2
0
 def validate_dbus_object(cls, path, state):
     application_name = PACKAGE_ID
     name = introspection.get_classname_from_path(path)
     if str(name) == application_name:
         if state['applicationName'][1] == application_name:
             return True
     return False
Esempio n. 3
0
    def validate_dbus_object(cls, path, state):
        if super().validate_dbus_object(path, state):
            return True

        name = introspection.get_classname_from_path(path)
        if name == b'OverflowPanel':
            return True

        return False
Esempio n. 4
0
    def validate_dbus_object(cls, path, state):
        if super().validate_dbus_object(path, state):
            # This covers MainView 0.1/1.0/1.1 and possible components
            # derived from MainView (e.g. "CustomMainView") that have
            # their own CPO.
            # Using objectName for selecting a MainView is recommneded.
            return True

        name = introspection.get_classname_from_path(path)
        if name == b'MainView12':
            # MainView 1.2. Must be selected using objectName.
            return True

        return False
Esempio n. 5
0
 def validate_dbus_object(cls, path, state):
     name = introspection.get_classname_from_path(path)
     if name == b'IndicatorPage':
         if state['objectName'][1] == 'indicator-mock-page':
             return True
     return False
Esempio n. 6
0
 def validate_dbus_object(cls, path, state):
     name = introspection.get_classname_from_path(path)
     return (name == b'AddressBookApp'
             and state['applicationName'][1] == 'AddressBookApp')
Esempio n. 7
0
 def validate_dbus_object(cls, path, state):
     name = introspection.get_classname_from_path(path)
     if name == b'webbrowser-app':
         if state['applicationName'][1] == 'webbrowser-app':
             return True
     return False
Esempio n. 8
0
 def validate_dbus_object(cls, path, state):
     name = introspection.get_classname_from_path(path)
     if name == b'Dialog':
         if state['objectName'][1] == 'Edit profile':
             return True
     return False
Esempio n. 9
0
 def validate_dbus_object(cls, path, state):
     name = introspection.get_classname_from_path(path)
     if name == b'Page11':
         if state['objectName'][1] == 'settingsPage':
             return True
     return False
Esempio n. 10
0
 def validate_dbus_object(cls, path, state):
     name = introspection.get_classname_from_path(path)
     if name == b'Slider':
         return True
     return False
Esempio n. 11
0
 def validate_dbus_object(cls, path, state):
     name = introspection.get_classname_from_path(path)
     if name == b'IndicatorPage':
         if state['objectName'][1] == 'indicator-mock-page':
             return True
     return False
Esempio n. 12
0
 def validate_dbus_object(cls, path, state):
     name = introspection.get_classname_from_path(path)
     if name == b'Slider':
         return True
     return False
Esempio n. 13
0
 def validate_dbus_object(cls, path, state):
     state_name = introspection.get_classname_from_path(path)
     class_name = cls.__name__.encode('utf-8')
     return state_name == class_name
Esempio n. 14
0
 def validate_dbus_object(cls, path, state):
     name = introspection.get_classname_from_path(path)
     if name == b'webbrowser-app':
         if state['applicationName'][1] == 'webbrowser-app':
             return True
     return False
Esempio n. 15
0
 def validate_dbus_object(cls, path, state):
     name = introspection.get_classname_from_path(path)
     if name == b'Page':
         if state['objectName'][1] == 'languagePage':
             return True
     return False
Esempio n. 16
0
 def validate_dbus_object(cls, path, state):
     name = introspection.get_classname_from_path(path)
     return name in (b'TutorialPage', b'TutorialLeft',
                     b'TutorialLeftFinish', b'TutorialRight',
                     b'TutorialBottom', b'TutorialBottomFinish')
Esempio n. 17
0
 def validate_dbus_object(cls, path, state):
     name = introspection.get_classname_from_path(path)
     return (name == b'MainWindow'
             and state['objectName'][1] == 'addressBookAppMainWindow')