PCManFM-Qt
applaunchcontext.h
1 /*
2  <one line to give the library's name and an idea of what it does.>
3  Copyright (C) 2012 Hong Jen Yee (PCMan) <pcman.tw@gmail.com>
4 
5  This library is free software; you can redistribute it and/or
6  modify it under the terms of the GNU Lesser General Public
7  License as published by the Free Software Foundation; either
8  version 2.1 of the License, or (at your option) any later version.
9 
10  This library is distributed in the hope that it will be useful,
11  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13  Lesser General Public License for more details.
14 
15  You should have received a copy of the GNU Lesser General Public
16  License along with this library; if not, write to the Free Software
17  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18 */
19 
20 
21 #ifndef FM_APP_LAUNCHCONTEXT_H
22 #define FM_APP_LAUNCHCONTEXT_H
23 
24 #include "libfmqtglobals.h"
25 #include <gio/gio.h>
26 #include <QWidget>
27 
28 #define FM_TYPE_APP_LAUNCH_CONTEXT (fm_app_launch_context_get_type())
29 #define FM_APP_LAUNCH_CONTEXT(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj),\
30  FM_TYPE_APP_LAUNCH_CONTEXT, FmAppLaunchContext))
31 #define FM_APP_LAUNCH_CONTEXT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass),\
32  FM_TYPE_APP_LAUNCH_CONTEXT, FmAppLaunchContextClass))
33 #define FM_IS_APP_LAUNCH_CONTEXT(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj),\
34  FM_TYPE_APP_LAUNCH_CONTEXT))
35 #define FM_IS_APP_LAUNCH_CONTEXT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass),\
36  FM_TYPE_APP_LAUNCH_CONTEXT))
37 #define FM_APP_LAUNCH_CONTEXT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj),\
38  FM_TYPE_APP_LAUNCH_CONTEXT, FmAppLaunchContextClass))
39 
40 typedef struct _FmAppLaunchContext FmAppLaunchContext;
41 
42 typedef struct _FmAppLaunchContextClass {
43  GAppLaunchContextClass parent;
44 }FmAppLaunchContextClass;
45 
46 FmAppLaunchContext* fm_app_launch_context_new();
47 FmAppLaunchContext* fm_app_launch_context_new_for_widget(QWidget* widget);
48 GType fm_app_launch_context_get_type();
49 
50 #endif // FM_APPLAUNCHCONTEXT_H