Added BApplication::Signature() getter.

This commit is contained in:
Axel Dörfler
2015-01-27 23:40:03 +01:00
parent e7803cf1f6
commit 30238c0418
2 changed files with 16 additions and 6 deletions
+8 -5
View File
@@ -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. * Distributed under the terms of the MIT License.
*/ */
#ifndef _APPLICATION_H #ifndef _APPLICATION_H
@@ -77,6 +77,7 @@ public:
int32 CountLoopers() const; int32 CountLoopers() const;
BLooper* LooperAt(int32 index) const; BLooper* LooperAt(int32 index) const;
bool IsLaunching() const; bool IsLaunching() const;
const char* Signature() const;
status_t GetAppInfo(app_info* info) const; status_t GetAppInfo(app_info* info) const;
static BResources* AppResources(); static BResources* AppResources();
@@ -99,8 +100,8 @@ private:
friend class Private; friend class Private;
friend class BServer; friend class BServer;
BApplication(const char* signature, bool initGUI, BApplication(const char* signature,
status_t* error); bool initGUI, status_t* error);
BApplication(uint32 signature); BApplication(uint32 signature);
BApplication(const BApplication&); BApplication(const BApplication&);
BApplication& operator=(const BApplication&); BApplication& operator=(const BApplication&);
@@ -126,12 +127,14 @@ private:
status_t _ConnectToServer(); status_t _ConnectToServer();
void _ReconnectToServer(); void _ReconnectToServer();
bool _QuitAllWindows(bool force); bool _QuitAllWindows(bool force);
bool _WindowQuitLoop(bool quitFilePanels, bool force); bool _WindowQuitLoop(bool quitFilePanels,
bool force);
void _ArgvReceived(BMessage* message); void _ArgvReceived(BMessage* message);
uint32 InitialWorkspace(); uint32 InitialWorkspace();
int32 _CountWindows(bool includeMenus) const; int32 _CountWindows(bool includeMenus) const;
BWindow* _WindowAt(uint32 index, bool includeMenus) const; BWindow* _WindowAt(uint32 index,
bool includeMenus) const;
static void _InitAppResources(); static void _InitAppResources();
+8 -1
View File
@@ -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. * Distributed under the terms of the MIT License.
* *
* Authors: * Authors:
@@ -964,6 +964,13 @@ BApplication::IsLaunching() const
} }
const char*
BApplication::Signature() const
{
return fAppName;
}
status_t status_t
BApplication::GetAppInfo(app_info* info) const BApplication::GetAppInfo(app_info* info) const
{ {