~cairo-dock-team/ubuntu/precise/cairo-dock-plug-ins/3.0.0.0beta1

« back to all changes in this revision

Viewing changes to Recent-Events/src/applet-struct.h

  • Committer: Bazaar Package Importer
  • Author(s): Matthieu Baerts (matttbe)
  • Date: 2011-04-20 20:46:51 UTC
  • mfrom: (1.1.9 upstream)
  • Revision ID: james.westby@ubuntu.com-20110420204651-ftnpzesj6uc7qeul
Tags: 2.3.0~1-0ubuntu1
* New Upstream Version (LP: #723995)
* Upstream short ChangeLog (since 2.3.0~0rc1):
 - Updated translations
 - Updated the integration of the new versions of kwin and compiz
    (Switcher, ShowDesktop, etc.)
 - Removed a lot of useless g_print
 - Updated a few plug-ins to fit with the new version of the API (gldit)
 - Fixed a few bugs
 - Updated MeMenu, MessagingMenu and Status-Notifier to works
    with the latest version of dbusmenu, etc.
* Switch to dpkg-source 3.0 (quilt) format
* debian/cairo-dock-plug-ins.install:
 - Added new files (interfaces for python, ruby, vala and mono)
* debian/control:
 - Added new dependences for new applets (sensors and zeitgeist)
    and new interfaces (python, valac, ruby and mono)
 - Updated the version of cairo-dock build-dependences
* debian/rules:
 - Added a new CMake flag to install python interface in debian/tmp
* Updated debian/watch

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/**
 
2
* This file is a part of the Cairo-Dock project
 
3
*
 
4
* Copyright : (C) see the 'copyright' file.
 
5
* E-mail    : see the 'copyright' file.
 
6
*
 
7
* This program is free software; you can redistribute it and/or
 
8
* modify it under the terms of the GNU General Public License
 
9
* as published by the Free Software Foundation; either version 3
 
10
* of the License, or (at your option) any later version.
 
11
*
 
12
* This program is distributed in the hope that it will be useful,
 
13
* but WITHOUT ANY WARRANTY; without even the implied warranty of
 
14
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
15
* GNU General Public License for more details.
 
16
* You should have received a copy of the GNU General Public License
 
17
* along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
18
*/
 
19
 
 
20
 
 
21
#ifndef __CD_APPLET_STRUCT__
 
22
#define  __CD_APPLET_STRUCT__
 
23
 
 
24
#include <cairo-dock.h>
 
25
#include <zeitgeist.h>
 
26
 
 
27
//\___________ structure containing the applet's configuration parameters.
 
28
struct _AppletConfig {
 
29
        gchar *cShortkey;
 
30
        gint iNbResultsMax;
 
31
        gint iNbRelatedFilesMax;
 
32
        gboolean b24Mode;
 
33
        } ;
 
34
 
 
35
typedef void (* CDOnGetEventsFunc) (ZeitgeistResultSet *pEvents, gpointer data);
 
36
typedef void (* CDOnDeleteEventsFunc) (int iNbEvents, gpointer data);
 
37
typedef enum {
 
38
        CD_EVENT_ALL,
 
39
        CD_EVENT_DOCUMENT,
 
40
        ///CD_EVENT_FOLDER,  // marche pas avec zeitgeist, et puis n'est pas super utile.
 
41
        CD_EVENT_IMAGE,
 
42
        CD_EVENT_AUDIO,
 
43
        CD_EVENT_VIDEO,
 
44
        CD_EVENT_WEB,
 
45
        CD_EVENT_OTHER,
 
46
        CD_EVENT_TOP_RESULTS,
 
47
        CD_NB_EVENT_TYPES
 
48
        } CDEventType;
 
49
 
 
50
typedef enum {
 
51
        CD_MODEL_NAME,
 
52
        CD_MODEL_URI,
 
53
        CD_MODEL_PATH,
 
54
        CD_MODEL_ICON,
 
55
        CD_MODEL_DATE,
 
56
        CD_MODEL_ID,
 
57
        CD_MODEL_NB_COLUMNS
 
58
        } CDModelColumn;
 
59
//\___________ structure containing the applet's data, like surfaces, dialogs, results of calculus, etc.
 
60
struct _AppletData {
 
61
        ZeitgeistEvent **pEvents;
 
62
        ZeitgeistLog *pLog;
 
63
        ZeitgeistIndex *pIndex;
 
64
        GList *pAppList;
 
65
        gchar *cCurrentUri;
 
66
        GtkWidget *pEntry;
 
67
        GtkListStore *pModel;
 
68
        CairoDialog *pDialog;
 
69
        CDEventType iCurrentCaterogy;
 
70
        } ;
 
71
 
 
72
 
 
73
#endif