def __init__(self):
        TaskPlugin.__init__(
            self,
            category=PLUGIN_CONST.CATEGORY_TASK_MISC,
            basename=plugin_name(__file__),
            name=_("Template"),
            description=_("Explain here what it does"),
            author="John Smith",
            copyright="Copyright (c) 2016",
            icon='puzzle',
            help_string=HELP,
            version="0.1.0",
        )
        # the icon resource is only needed if the plugin uses a custom icon
        # self.graphics.append('plugin_icon.png')

        # the items below might be not needed and can be deleted if the
        # plugin does not have a configuration panel
        self.resources.append('plugin_template.glade')
        self.builder = self.get_dialog('plugin_template')
        self.plugin_panel = None
        self.forward_allowed = False  # forward not enabled by default

        # define this only if the plugin provides one or more scripts
        # self.scripts.append('needed_script.sh')

        # mandatory or anyway structural variables and object values follow:
        self.command_line = None  # must be set for task plugins
        self.summary_description = None  # must be set for all plugins

        # this variable is defined here only for demonstrational purposes
        self.value = None
 def __init__(self):
     TaskPlugin.__init__(
         self,
         category=PLUGIN_CONST.CATEGORY_TASK_FILEOPS,
         basename=plugin_name(__file__),
         name=_("Media Copy"),
         description=_("Copy from Removable Media"),
         author=APP_AUTHOR,
         copyright=APP_COPYRIGHT,
         icon='briefcase',
         help_string=HELP,
         version=APP_VERSION,
     )
     self.stock = True
     self.builder = self.get_dialog('plugin_fileops-mediacopy')
     self.plugin_panel = None
     self.forward_allowed = False
     self.media_label = None
     self.destination = None
     self.data = self.data_retrieve()
     if self.data is None:
         self.data = {
             'device_labels': [],
         }
     self.device_labels = self.data['device_labels']
Exemple #3
0
 def __init__(self):
     TaskPlugin.__init__(
         self,
         category=PLUGIN_CONST.CATEGORY_TASK_FILEOPS,
         basename=plugin_name(__file__),
         name=_("Media Copy"),
         description=_("Copy from Removable Media"),
         author=APP_AUTHOR,
         copyright=APP_COPYRIGHT,
         icon='briefcase',
         help_string=HELP,
         version=APP_VERSION,
     )
     self.stock = True
     self.builder = self.get_dialog('plugin_fileops-mediacopy')
     self.plugin_panel = None
     self.forward_allowed = False
     self.media_label = None
     self.destination = None
     self.data = self.data_retrieve()
     if self.data is None:
         self.data = {
             'device_labels': [],
         }
     self.device_labels = self.data['device_labels']
    def __init__(self):
        TaskPlugin.__init__(
            self,
            category=PLUGIN_CONST.CATEGORY_TASK_MISC,
            basename=plugin_name(__file__),
            name=_("Confluent Task"),
            description=_("Concur in triggering a compound condition"),
            author="Francesco Garosi",
            copyright="Copyright (c) 2016",
            icon='parallel_tasks',
            help_string=HELP,
            version="0.1.0",
        )
        self.resources.append('plugin_confluence.glade')
        self.builder = self.get_dialog('plugin_confluence')
        self.plugin_panel = None
        self.forward_allowed = False

        self.scripts.append('confluence.sh')
        self.command_line = None
        self.summary_description = None
        self.persistence_dir = self.file_storage('plugin_confluence')
        self.group_name = None

        # the plugin data store can be used to save associations of tasks
        # and groups, because group information is lost in the default
        # task store process: in this way if this task is not a new one
        # its group can be easily retrieved; we can be sure no overwrite
        # is possible since ids are unique by construction
        self.data = self.data_retrieve()
        if self.data is None:
            self.data = {}
            self.data_store(self.data)
    def __init__(self):
        TaskPlugin.__init__(
            self,
            category=PLUGIN_CONST.CATEGORY_TASK_MISC,
            basename=plugin_name(__file__),
            name=_("Template"),
            description=_("Explain here what it does"),
            author="John Smith",
            copyright="Copyright (c) 2016",
            icon='puzzle',
            help_string=HELP,
            version="0.1.0",
        )
        # the icon resource is only needed if the plugin uses a custom icon
        # self.graphics.append('plugin_icon.png')

        # the items below might be not needed and can be deleted if the
        # plugin does not have a configuration panel
        self.resources.append('plugin_template.glade')
        self.builder = self.get_dialog('plugin_template')
        self.plugin_panel = None
        self.forward_allowed = False        # forward not enabled by default

        # define this only if the plugin provides one or more scripts
        # self.scripts.append('needed_script.sh')

        # mandatory or anyway structural variables and object values follow:
        self.command_line = None            # must be set for task plugins
        self.summary_description = None     # must be set for all plugins

        # this variable is defined here only for demonstrational purposes
        self.value = None
 def __init__(self):
     TaskPlugin.__init__(
         self,
         category=PLUGIN_CONST.CATEGORY_TASK_POWER,
         basename=plugin_name(__file__),
         name=_("Hibernate"),
         description=_("Hibernate your Workstation"),
         author=APP_AUTHOR,
         copyright=APP_COPYRIGHT,
         icon="night_landscape",
         help_string=HELP,
         version=APP_VERSION,
     )
     self.stock = True
     self.command_line = HIBERNATE_COMMAND
     self.summary_description = _("The system will suspend or hibernate")
 def __init__(self):
     TaskPlugin.__init__(
         self,
         category=PLUGIN_CONST.CATEGORY_TASK_SESSION,
         basename=plugin_name(__file__),
         name=_("Lock"),
         description=_("Session Lock"),
         author=APP_AUTHOR,
         copyright=APP_COPYRIGHT,
         icon='lock',
         help_string=HELP,
         version=APP_VERSION,
     )
     self.stock = True
     self.command_line = LOCK_COMMAND
     self.summary_description = _("The session will be locked")
 def __init__(self):
     TaskPlugin.__init__(
         self,
         category=PLUGIN_CONST.CATEGORY_TASK_SESSION,
         basename=plugin_name(__file__),
         name=_("Lock"),
         description=_("Session Lock"),
         author=APP_AUTHOR,
         copyright=APP_COPYRIGHT,
         icon='lock',
         help_string=HELP,
         version=APP_VERSION,
     )
     self.stock = True
     self.command_line = LOCK_COMMAND
     self.summary_description = _("The session will be locked")
 def __init__(self):
     TaskPlugin.__init__(
         self,
         category=PLUGIN_CONST.CATEGORY_TASK_POWER,
         basename=plugin_name(__file__),
         name=_("Shutdown"),
         description=_("Shut Down your Workstation"),
         author=APP_AUTHOR,
         copyright=APP_COPYRIGHT,
         icon='no_idea',
         help_string=HELP,
         version=APP_VERSION,
     )
     self.stock = True
     self.command_line = SHUTDOWN_COMMAND
     self.summary_description = _("The system will be shut down")
 def __init__(self):
     TaskPlugin.__init__(
         self,
         category=PLUGIN_CONST.CATEGORY_TASK_POWER,
         basename=plugin_name(__file__),
         name=_("Reboot"),
         description=_("Reboot your Workstation"),
         author=APP_AUTHOR,
         copyright=APP_COPYRIGHT,
         icon='refresh',
         help_string=HELP,
         version=APP_VERSION,
     )
     self.stock = True
     self.command_line = REBOOT_COMMAND
     self.summary_description = _("The system will reboot")
Exemple #11
0
 def __init__(self):
     TaskPlugin.__init__(
         self,
         category=PLUGIN_CONST.CATEGORY_TASK_POWER,
         basename=plugin_name(__file__),
         name=_("Hibernate"),
         description=_("Hibernate your Workstation"),
         author=APP_AUTHOR,
         copyright=APP_COPYRIGHT,
         icon='night_landscape',
         help_string=HELP,
         version=APP_VERSION,
     )
     self.stock = True
     self.command_line = HIBERNATE_COMMAND
     self.summary_description = _("The system will suspend or hibernate")
 def __init__(self):
     TaskPlugin.__init__(
         self,
         category=PLUGIN_CONST.CATEGORY_TASK_MISC,
         basename=plugin_name(__file__),
         name=_("Sound"),
         description=_("Play a Sound"),
         author=APP_AUTHOR,
         copyright=APP_COPYRIGHT,
         icon='speaker',
         help_string=HELP,
         version=APP_VERSION,
     )
     self.stock = True
     self.builder = self.get_dialog('plugin_misc-sound')
     self.plugin_panel = None
     self.path = None
 def __init__(self):
     TaskPlugin.__init__(
         self,
         category=PLUGIN_CONST.CATEGORY_TASK_MISC,
         basename=plugin_name(__file__),
         name=_("Sound"),
         description=_("Play a Sound"),
         author=APP_AUTHOR,
         copyright=APP_COPYRIGHT,
         icon='speaker',
         help_string=HELP,
         version=APP_VERSION,
     )
     self.stock = True
     self.builder = self.get_dialog('plugin_misc-sound')
     self.plugin_panel = None
     self.path = None
 def __init__(self):
     TaskPlugin.__init__(
         self,
         category=PLUGIN_CONST.CATEGORY_TASK_APPS,
         basename=plugin_name(__file__),
         name=_("Command Launcher"),
         description=_("Run a Command using the Default Shell"),
         author=APP_AUTHOR,
         copyright=APP_COPYRIGHT,
         icon='start',
         help_string=HELP,
         version=APP_VERSION,
     )
     self.stock = True
     self.builder = self.get_dialog('plugin_apps-command')
     self.plugin_panel = None
     self.forward_allowed = False
 def __init__(self):
     TaskPlugin.__init__(
         self,
         category=PLUGIN_CONST.CATEGORY_TASK_APPS,
         basename=plugin_name(__file__),
         name=_("Command Launcher"),
         description=_("Run a Command using the Default Shell"),
         author=APP_AUTHOR,
         copyright=APP_COPYRIGHT,
         icon='start',
         help_string=HELP,
         version=APP_VERSION,
     )
     self.stock = True
     self.builder = self.get_dialog('plugin_apps-command')
     self.plugin_panel = None
     self.forward_allowed = False
 def __init__(self):
     TaskPlugin.__init__(
         self,
         category=PLUGIN_CONST.CATEGORY_TASK_SETTINGS,
         basename=plugin_name(__file__),
         name=_("Change Background"),
         description=_("Modify the Desktop Background"),
         author=APP_AUTHOR,
         copyright=APP_COPYRIGHT,
         icon='gallery',
         help_string=HELP,
         version=APP_VERSION,
     )
     self.stock = True
     self.builder = self.get_dialog('plugin_desktop-changebg')
     self.plugin_panel = None
     self.forward_allowed = False
     self.background_image = None
 def __init__(self):
     TaskPlugin.__init__(
         self,
         category=PLUGIN_CONST.CATEGORY_TASK_FILEOPS,
         basename=plugin_name(__file__),
         name=_("Open File"),
         description=_("Open a File"),
         author=APP_AUTHOR,
         copyright=APP_COPYRIGHT,
         icon='file',
         help_string=HELP,
         version=APP_VERSION,
     )
     self.stock = True
     self.builder = self.get_dialog('plugin_fileops-openfile')
     self.plugin_panel = None
     self.forward_allowed = False
     self.path = None
 def __init__(self):
     TaskPlugin.__init__(
         self,
         category=PLUGIN_CONST.CATEGORY_TASK_APPS,
         basename=plugin_name(__file__),
         name=_("Application Launcher"),
         description=_("Start a Desktop Application"),
         author=APP_AUTHOR,
         copyright=APP_COPYRIGHT,
         icon='electro_devices',
         help_string=HELP,
         version=APP_VERSION,
     )
     self.stock = True
     self.script_path = self.get_script('run-desktop.py')
     self.builder = self.get_dialog('plugin_apps-launch')
     self.plugin_panel = None
     self.app_name = None
 def __init__(self):
     TaskPlugin.__init__(
         self,
         category=PLUGIN_CONST.CATEGORY_TASK_FILEOPS,
         basename=plugin_name(__file__),
         name=_("Open Directory"),
         description=_("Show a Directory in File Manager"),
         author=APP_AUTHOR,
         copyright=APP_COPYRIGHT,
         icon='folder',
         help_string=HELP,
         version=APP_VERSION,
     )
     self.stock = True
     self.builder = self.get_dialog('plugin_fileops-opendir')
     self.plugin_panel = None
     self.forward_allowed = False
     self.path = None
 def __init__(self):
     TaskPlugin.__init__(
         self,
         category=PLUGIN_CONST.CATEGORY_TASK_APPS,
         basename=plugin_name(__file__),
         name=_("Application Launcher"),
         description=_("Start a Desktop Application"),
         author=APP_AUTHOR,
         copyright=APP_COPYRIGHT,
         icon='electro_devices',
         help_string=HELP,
         version=APP_VERSION,
     )
     self.stock = True
     self.script_path = self.get_script('run-desktop.py')
     self.builder = self.get_dialog('plugin_apps-launch')
     self.plugin_panel = None
     self.app_name = None
 def __init__(self):
     TaskPlugin.__init__(
         self,
         category=PLUGIN_CONST.CATEGORY_TASK_SETTINGS,
         basename=plugin_name(__file__),
         name=_("Change Background"),
         description=_("Modify the Desktop Background"),
         author=APP_AUTHOR,
         copyright=APP_COPYRIGHT,
         icon='gallery',
         help_string=HELP,
         version=APP_VERSION,
     )
     self.stock = True
     self.builder = self.get_dialog('plugin_desktop-changebg')
     self.plugin_panel = None
     self.forward_allowed = False
     self.background_image = None
 def __init__(self):
     TaskPlugin.__init__(
         self,
         category=PLUGIN_CONST.CATEGORY_TASK_MISC,
         basename=plugin_name(__file__),
         name=_("Email"),
         description=_("Send an E-mail Message"),
         author=APP_AUTHOR,
         copyright=APP_COPYRIGHT,
         icon='feedback',
         help_string=HELP,
         version=APP_VERSION,
     )
     self.stock = True
     self.builder = self.get_dialog('plugin_misc-sendmail')
     self.plugin_panel = None
     self.forward_allowed = False
     self.message = None
     self.title = None
     self.mailto = None
Exemple #23
0
 def __init__(self):
     TaskPlugin.__init__(
         self,
         category=PLUGIN_CONST.CATEGORY_TASK_FILEOPS,
         basename=plugin_name(__file__),
         name=_("Synchronize"),
         description=_("Synchronize Two Directories"),
         author=APP_AUTHOR,
         copyright=APP_COPYRIGHT,
         icon='advance',
         help_string=HELP,
         version=APP_VERSION,
     )
     self.stock = True
     self.script = self.get_script('plugin_fileops-sync.sh')
     self.builder = self.get_dialog('plugin_fileops-sync')
     self.plugin_panel = None
     self.forward_allowed = False
     self.source = None
     self.destination = None
 def __init__(self):
     TaskPlugin.__init__(
         self,
         category=PLUGIN_CONST.CATEGORY_TASK_MISC,
         basename=plugin_name(__file__),
         name=_("Email"),
         description=_("Send an E-mail Message"),
         author=APP_AUTHOR,
         copyright=APP_COPYRIGHT,
         icon='feedback',
         help_string=HELP,
         version=APP_VERSION,
     )
     self.stock = True
     self.builder = self.get_dialog('plugin_misc-sendmail')
     self.plugin_panel = None
     self.forward_allowed = False
     self.message = None
     self.title = None
     self.mailto = None
 def __init__(self):
     TaskPlugin.__init__(
         self,
         category=PLUGIN_CONST.CATEGORY_TASK_FILEOPS,
         basename=plugin_name(__file__),
         name=_("Synchronize"),
         description=_("Synchronize Two Directories"),
         author=APP_AUTHOR,
         copyright=APP_COPYRIGHT,
         icon='advance',
         help_string=HELP,
         version=APP_VERSION,
     )
     self.stock = True
     self.script = self.get_script('plugin_fileops-sync.sh')
     self.builder = self.get_dialog('plugin_fileops-sync')
     self.plugin_panel = None
     self.forward_allowed = False
     self.source = None
     self.destination = None
 def __init__(self):
     TaskPlugin.__init__(
         self,
         category=PLUGIN_CONST.CATEGORY_TASK_MISC,
         basename=plugin_name(__file__),
         name=_("Show Badge"),
         description=_("Show a Notification Badge"),
         author=APP_AUTHOR,
         copyright=APP_COPYRIGHT,
         icon='sms',
         help_string=HELP,
         version=APP_VERSION,
     )
     self.stock = True
     self.builder = self.get_dialog('plugin_misc-badge')
     self.plugin_panel = None
     self.forward_allowed = False
     self.message = None
     self.title = None
     self.iconname = None
     self.summary_description = _("A notification badge will be displayed")
 def __init__(self):
     TaskPlugin.__init__(
         self,
         category=PLUGIN_CONST.CATEGORY_TASK_MISC,
         basename=plugin_name(__file__),
         name=_("Send Keystroke"),
         description=_("Send a keystroke to an open window"),
         author=APP_AUTHOR,
         copyright=APP_COPYRIGHT,
         icon='internal',
         help_string=HELP,
         version=APP_VERSION,
     )
     self.stock = True
     self.builder = self.get_dialog('plugin_misc-keystroke')
     self.plugin_panel = None
     self.forward_allowed = False
     self.command_line = None
     self.summary_description = None
     self.window_title = None
     self.keystroke = None
Exemple #28
0
 def __init__(self):
     TaskPlugin.__init__(
         self,
         category=PLUGIN_CONST.CATEGORY_TASK_MISC,
         basename=plugin_name(__file__),
         name=_("Send Keystroke"),
         description=_("Send a keystroke to an open window"),
         author=APP_AUTHOR,
         copyright=APP_COPYRIGHT,
         icon='internal',
         help_string=HELP,
         version=APP_VERSION,
     )
     self.stock = True
     self.builder = self.get_dialog('plugin_misc-keystroke')
     self.plugin_panel = None
     self.forward_allowed = False
     self.command_line = None
     self.summary_description = None
     self.window_title = None
     self.keystroke = None
 def __init__(self):
     TaskPlugin.__init__(
         self,
         category=PLUGIN_CONST.CATEGORY_TASK_MISC,
         basename=plugin_name(__file__),
         name=_("Show Badge"),
         description=_("Show a Notification Badge"),
         author=APP_AUTHOR,
         copyright=APP_COPYRIGHT,
         icon='sms',
         help_string=HELP,
         version=APP_VERSION,
     )
     self.stock = True
     self.builder = self.get_dialog('plugin_misc-badge')
     self.plugin_panel = None
     self.forward_allowed = False
     self.message = None
     self.title = None
     self.iconname = None
     self.summary_description = _("A notification badge will be displayed")