diff options
Diffstat (limited to 'linden/indra/newview/llappviewerlinux.h')
-rw-r--r-- | linden/indra/newview/llappviewerlinux.h | 36 |
1 files changed, 33 insertions, 3 deletions
diff --git a/linden/indra/newview/llappviewerlinux.h b/linden/indra/newview/llappviewerlinux.h index a180b4d..b464e48 100644 --- a/linden/indra/newview/llappviewerlinux.h +++ b/linden/indra/newview/llappviewerlinux.h | |||
@@ -4,7 +4,7 @@ | |||
4 | * | 4 | * |
5 | * $LicenseInfo:firstyear=2007&license=viewergpl$ | 5 | * $LicenseInfo:firstyear=2007&license=viewergpl$ |
6 | * | 6 | * |
7 | * Copyright (c) 2007-2008, Linden Research, Inc. | 7 | * Copyright (c) 2007-2009, Linden Research, Inc. |
8 | * | 8 | * |
9 | * Second Life Viewer Source Code | 9 | * Second Life Viewer Source Code |
10 | * The source code in this file ("Source Code") is provided by Linden Lab | 10 | * The source code in this file ("Source Code") is provided by Linden Lab |
@@ -32,6 +32,14 @@ | |||
32 | #ifndef LL_LLAPPVIEWERLINUX_H | 32 | #ifndef LL_LLAPPVIEWERLINUX_H |
33 | #define LL_LLAPPVIEWERLINUX_H | 33 | #define LL_LLAPPVIEWERLINUX_H |
34 | 34 | ||
35 | #if LL_DBUS_ENABLED | ||
36 | extern "C" { | ||
37 | # include <glib.h> | ||
38 | # include <glib-object.h> | ||
39 | # include <dbus/dbus-glib.h> | ||
40 | } | ||
41 | #endif | ||
42 | |||
35 | #ifndef LL_LLAPPVIEWER_H | 43 | #ifndef LL_LLAPPVIEWER_H |
36 | #include "llappviewer.h" | 44 | #include "llappviewer.h" |
37 | #endif | 45 | #endif |
@@ -49,15 +57,37 @@ public: | |||
49 | // | 57 | // |
50 | virtual bool init(); // Override to do application initialization | 58 | virtual bool init(); // Override to do application initialization |
51 | std::string generateSerialNumber(); | 59 | std::string generateSerialNumber(); |
60 | bool setupSLURLHandler(); | ||
52 | 61 | ||
53 | protected: | 62 | protected: |
54 | virtual bool beingDebugged(); | 63 | virtual bool beingDebugged(); |
55 | 64 | ||
56 | virtual void handleCrashReporting(); | 65 | virtual bool restoreErrorTrap(); |
66 | virtual void handleCrashReporting(bool reportFreeze); | ||
57 | virtual void handleSyncCrashTrace(); | 67 | virtual void handleSyncCrashTrace(); |
58 | 68 | ||
59 | virtual bool initLogging(); | 69 | virtual bool initLogging(); |
60 | virtual bool initParseCommandLine(LLCommandLineParser& clp); | 70 | virtual bool initParseCommandLine(LLCommandLineParser& clp); |
71 | |||
72 | virtual bool initSLURLHandler(); | ||
73 | virtual bool sendURLToOtherInstance(const std::string& url); | ||
61 | }; | 74 | }; |
62 | 75 | ||
76 | #if LL_DBUS_ENABLED | ||
77 | typedef struct | ||
78 | { | ||
79 | GObject parent; | ||
80 | DBusGConnection *connection; | ||
81 | } ViewerAppAPI; | ||
82 | |||
83 | extern "C" { | ||
84 | gboolean viewer_app_api_GoSLURL(ViewerAppAPI *obj, gchar *slurl, gboolean **success_rtn, GError **error); | ||
85 | } | ||
86 | |||
87 | #define VIEWERAPI_SERVICE "com.secondlife.ViewerAppAPIService" | ||
88 | #define VIEWERAPI_PATH "/com/secondlife/ViewerAppAPI" | ||
89 | #define VIEWERAPI_INTERFACE "com.secondlife.ViewerAppAPI" | ||
90 | |||
91 | #endif // LL_DBUS_ENABLED | ||
92 | |||
63 | #endif // LL_LLAPPVIEWERLINUX_H | 93 | #endif // LL_LLAPPVIEWERLINUX_H |