hrev48735 adds 1 changeset to branch 'master' old head: e7803cf1f69a81b1c77880518ba16b6708c1efdb new head: 30238c0418b23ddae182320a90031f3e16800a64 overview: http://cgit.haiku-os.org/haiku/log/?qt=range&q=30238c0418b2+%5Ee7803cf1f69a ---------------------------------------------------------------------------- 30238c0418b2: Added BApplication::Signature() getter. [ Axel Dörfler <axeld@xxxxxxxxxxxxxxxx> ] ---------------------------------------------------------------------------- Revision: hrev48735 Commit: 30238c0418b23ddae182320a90031f3e16800a64 URL: http://cgit.haiku-os.org/haiku/commit/?id=30238c0418b2 Author: Axel Dörfler <axeld@xxxxxxxxxxxxxxxx> Date: Tue Jan 27 22:40:03 2015 UTC ---------------------------------------------------------------------------- 2 files changed, 16 insertions(+), 6 deletions(-) headers/os/app/Application.h | 13 ++++++++----- src/kits/app/Application.cpp | 9 ++++++++- ---------------------------------------------------------------------------- diff --git a/headers/os/app/Application.h b/headers/os/app/Application.h index 8ab5d9f..22692b6 100644 --- a/headers/os/app/Application.h +++ b/headers/os/app/Application.h @@ -1,5 +1,5 @@ /* - * Copyright 2001-2014 Haiku, Inc. All rights reserved. + * Copyright 2001-2015 Haiku, Inc. All rights reserved. * Distributed under the terms of the MIT License. */ #ifndef _APPLICATION_H @@ -77,6 +77,7 @@ public: int32 CountLoopers() const; BLooper* LooperAt(int32 index) const; bool IsLaunching() const; + const char* Signature() const; status_t GetAppInfo(app_info* info) const; static BResources* AppResources(); @@ -99,8 +100,8 @@ private: friend class Private; friend class BServer; - BApplication(const char* signature, bool initGUI, - status_t* error); + BApplication(const char* signature, + bool initGUI, status_t* error); BApplication(uint32 signature); BApplication(const BApplication&); BApplication& operator=(const BApplication&); @@ -126,12 +127,14 @@ private: status_t _ConnectToServer(); void _ReconnectToServer(); bool _QuitAllWindows(bool force); - bool _WindowQuitLoop(bool quitFilePanels, bool force); + bool _WindowQuitLoop(bool quitFilePanels, + bool force); void _ArgvReceived(BMessage* message); uint32 InitialWorkspace(); int32 _CountWindows(bool includeMenus) const; - BWindow* _WindowAt(uint32 index, bool includeMenus) const; + BWindow* _WindowAt(uint32 index, + bool includeMenus) const; static void _InitAppResources(); diff --git a/src/kits/app/Application.cpp b/src/kits/app/Application.cpp index 9373a07..4d00e18 100644 --- a/src/kits/app/Application.cpp +++ b/src/kits/app/Application.cpp @@ -1,5 +1,5 @@ /* - * Copyright 2001-2014 Haiku, inc. All rights reserved. + * Copyright 2001-2015 Haiku, inc. All rights reserved. * Distributed under the terms of the MIT License. * * Authors: @@ -964,6 +964,13 @@ BApplication::IsLaunching() const } +const char* +BApplication::Signature() const +{ + return fAppName; +} + + status_t BApplication::GetAppInfo(app_info* info) const {