PageRenderTime 111ms CodeModel.GetById 24ms RepoModel.GetById 0ms app.codeStats 0ms

/indra/newview/llappviewerlinux.h

https://bitbucket.org/lindenlab/viewer-beta/
C Header | 90 lines | 46 code | 16 blank | 28 comment | 0 complexity | 031d346610cbe7936ac1738608e1cfb0 MD5 | raw file
Possible License(s): LGPL-2.1
  1. /**
  2. * @file llappviewerlinux.h
  3. * @brief The LLAppViewerLinux class declaration
  4. *
  5. * $LicenseInfo:firstyear=2007&license=viewerlgpl$
  6. * Second Life Viewer Source Code
  7. * Copyright (C) 2010, Linden Research, Inc.
  8. *
  9. * This library is free software; you can redistribute it and/or
  10. * modify it under the terms of the GNU Lesser General Public
  11. * License as published by the Free Software Foundation;
  12. * version 2.1 of the License only.
  13. *
  14. * This library is distributed in the hope that it will be useful,
  15. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  16. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  17. * Lesser General Public License for more details.
  18. *
  19. * You should have received a copy of the GNU Lesser General Public
  20. * License along with this library; if not, write to the Free Software
  21. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  22. *
  23. * Linden Research, Inc., 945 Battery Street, San Francisco, CA 94111 USA
  24. * $/LicenseInfo$
  25. */
  26. #ifndef LL_LLAPPVIEWERLINUX_H
  27. #define LL_LLAPPVIEWERLINUX_H
  28. extern "C" {
  29. # include <glib.h>
  30. }
  31. #if LL_DBUS_ENABLED
  32. extern "C" {
  33. # include <glib-object.h>
  34. # include <dbus/dbus-glib.h>
  35. }
  36. #endif
  37. #ifndef LL_LLAPPVIEWER_H
  38. #include "llappviewer.h"
  39. #endif
  40. class LLCommandLineParser;
  41. class LLAppViewerLinux : public LLAppViewer
  42. {
  43. public:
  44. LLAppViewerLinux();
  45. virtual ~LLAppViewerLinux();
  46. //
  47. // Main application logic
  48. //
  49. virtual bool init(); // Override to do application initialization
  50. std::string generateSerialNumber();
  51. bool setupSLURLHandler();
  52. protected:
  53. virtual bool beingDebugged();
  54. virtual bool restoreErrorTrap();
  55. virtual void handleCrashReporting(bool reportFreeze);
  56. virtual bool initLogging();
  57. virtual bool initParseCommandLine(LLCommandLineParser& clp);
  58. virtual bool initSLURLHandler();
  59. virtual bool sendURLToOtherInstance(const std::string& url);
  60. };
  61. #if LL_DBUS_ENABLED
  62. typedef struct
  63. {
  64. GObject parent;
  65. DBusGConnection *connection;
  66. } ViewerAppAPI;
  67. extern "C" {
  68. gboolean viewer_app_api_GoSLURL(ViewerAppAPI *obj, gchar *slurl, gboolean **success_rtn, GError **error);
  69. }
  70. #define VIEWERAPI_SERVICE "com.secondlife.ViewerAppAPIService"
  71. #define VIEWERAPI_PATH "/com/secondlife/ViewerAppAPI"
  72. #define VIEWERAPI_INTERFACE "com.secondlife.ViewerAppAPI"
  73. #endif // LL_DBUS_ENABLED
  74. #endif // LL_LLAPPVIEWERLINUX_H