Added BApplication::Signature() getter.
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user