• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • superkaramba
 

superkaramba

  • superkaramba
  • src
svcgrp_python.h
1/***************************************************************************
2 * Copyright (C) 2004 Luke Kenneth Casson Leighton <lkcl@lkcl.net> *
3 * *
4 * This program is free software; you can redistribute it and/or modify *
5 * it under the terms of the GNU General Public License as published by *
6 * the Free Software Foundation; either version 2 of the License, or *
7 * (at your option) any later version. *
8 ***************************************************************************/
9
10#ifndef SVC_GRPS_PYTHON_H
11#define SVC_GRPS_PYTHON_H
12
13#include <Python.h>
14
15//****p* Misc/getServiceGroups
16//
17// SYNOPSIS
18// list getServiceGroups(widget, path)
19// DESCRIPTION
20// This function returns a list of services and service groups
21// that are in the user's KDE Menu. It is not a recursive
22// function, so if there are submenus (service groups) in the
23// returned results, you must call getServiceGroups with the
24// path of the submenu in order to obtain the information in
25// that submenu.
26// The return result is complex: it's a list of tuples.
27// The tuple contains two elements - a 1 if the second element
28// is a service, and a 0 if it's a service group.
29// The second element is a dictionary, with keys (if they exist)
30// of caption, comment, icon, and relpath if it's a service group,
31// and keys (if they exist) of exec, menuid, name, path, icon,
32// library, comment, type and genericname.
33// To fully understand the return results of this function,
34// it is thoroughly recommended // that you look up the
35// KDE documentation on KServiceGroup and KService.
36// ARGUMENTS
37// * long widget -- karamba
38// * string path -- path to the Service Group you wish to retrieve
39// RETURN VALUE
40// List of Dictionaries of services and service groups
41//***
42PyObject* py_get_service_groups(PyObject *self, PyObject *args);
43
44#endif // SVC_GRPS_PYTHON_H

superkaramba

Skip menu "superkaramba"
  • Main Page
  • Alphabetical List
  • Class List
  • File List
  • Class Members

superkaramba

Skip menu "superkaramba"
  • kcalc
  •   knumber
  • superkaramba
Generated for superkaramba by doxygen 1.9.4
This website is maintained by Timothy Pearson.