History log of /haiku/src/kits/app/AppMisc.cpp
Revision Date Author Comments
# 2846db2e 31-Jul-2019 CodeforEvolution <secundaja@gmail.com>

Implement is_app_showing_modal_window()

Also do some cleanup in private headers, I can't imagine why the build
libraries would need this function.

Change-Id: Ib08810b6efe4738dad596a735d741582a3781b28
Reviewed-on: https://review.haiku-os.org/c/1670
Reviewed-by: Ryan Leavengood <leavengood@gmail.com>


# e3d73948 15-Aug-2015 Julian Harnath <julian.harnath@rwth-aachen.de>

app_server: fix test-app_server for launch_daemon changes

* Make test-app_server work again in a launch_daemon environment

* test_registrar gets a separate signature and port name again so the
host system can distinguish it from the system registrar

* AppServer is normally a BServer now, however, there can't be two
BApplications in one team. A class TestServerLoopAdapter is added,
which becomes the base class of AppServer instead of BServer when
compiling for libbe_test. It's an adapter class which looks towards
AppServer as it if was a BServer, but internally it is derived from
MessageLooper (like the old AppServer before the transition to
BServer).

This way, AppServer can stay a BServer in normal builds and it also
avoids having to use too many #ifdefs to distinguish the two
versions.


# 592ffe64 15-Apr-2015 Axel Dörfler <axeld@pinc-software.de>

The app_server is now a regular BServer.


# 8a86ad75 09-Jun-2015 Axel Dörfler <axeld@pinc-software.de>

libbe: Fixed current_team() to work after a fork.

* This allows to start a valid looper in the forked child, for example.


# 6c40fc5d 21-Jan-2012 czeidler <haiku@clemens-zeidler.de>

Reconnect BApplication and trigger reconnect of all BWindows in an application.
* handle bitmap reconnect request in the app server


# 4bb026ea 14-Jun-2011 Ingo Weinhold <ingo_weinhold@gmx.de>

Missing header.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42175 a95241bf-73f2-0310-859d-f6bbb57e9c96


# ec1bcf62 01-Dec-2009 Axel Dörfler <axeld@pinc-software.de>

* Added private methods get_app_server_port() (that stores the server port,
and doesn't have to find it every time), and create_desktop_connection() that
is now used from BApplication::_ConnectToServer() as well as the DesktopLink.
* Move PortLink::SetTo() into base class ServerLink.
* Eliminated duplicated member fReplyPort in DesktopLink.
* Cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34397 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 240a2c89 30-Nov-2009 Ingo Weinhold <ingo_weinhold@gmx.de>

Removed no longer needed gInitializationLock.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34385 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 4b9cf09f 29-Nov-2009 Ingo Weinhold <ingo_weinhold@gmx.de>

* Got rid of is_running_on_haiku(). It was used for the test environment,
but wouldn't work when running it on Haiku anyway. At any rate, it was
relatively expensive (uname()) and used already in the libbe
initialization.
* Got rid of the non-Haiku support of main_thread_for().


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34371 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 67c578e7 10-Oct-2007 Ingo Weinhold <ingo_weinhold@gmx.de>

Added global lock that can be used for lazy initializations.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22502 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 88df8322 25-Jan-2007 Axel Dörfler <axeld@pinc-software.de>

Optimized current_team() - it now uses a static variable to hold the team ID.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19964 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 5edcfe96 03-Jan-2006 Axel Dörfler <axeld@pinc-software.de>

Cleanup!


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15806 a95241bf-73f2-0310-859d-f6bbb57e9c96


# cd05d511 14-Jul-2005 Ingo Weinhold <ingo_weinhold@gmx.de>

Introduced generalized versions of get_app_path() and get_app_ref() returning the path/ref for an arbitrary team.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13681 a95241bf-73f2-0310-859d-f6bbb57e9c96


# c39d6b97 07-Jul-2005 Ingo Weinhold <ingo_weinhold@gmx.de>

* Introduced is_app_showing_modal_window(). Not implemented yet. Maybe
someone with app server insight wants to do that. :-)
* Simplified main_thread_for() for Haiku.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13538 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 9171d496 16-Jan-2005 Ingo Weinhold <ingo_weinhold@gmx.de>

Added function is_running_on_haiku(), which returns at runtime whether we're running under Haiku.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10783 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 83969b95 04-Feb-2003 Ingo Weinhold <ingo_weinhold@gmx.de>

B_PATH_NAME_LENGTH + 1 -> B_PATH_NAME_LENGTH.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2631 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 121f83dd 12-Oct-2002 Ingo Weinhold <ingo_weinhold@gmx.de>

Moved the miscellaneous app kit functions into the BPrivate namespace and added the function current_team() which returns the ID of the current team.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1501 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 41b5558a 19-Aug-2002 Ingo Weinhold <ingo_weinhold@gmx.de>

Added explanative comment to get_app_path() and fixed the error return value of main_thread_for().


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@827 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 4d7538b1 28-Jul-2002 Ingo Weinhold <ingo_weinhold@gmx.de>

Moved some reusable code from BApplication to this shiny new place.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@510 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 592ffe646134dd48c661571a64a86598f3ecf29e 15-Apr-2015 Axel Dörfler <axeld@pinc-software.de>

The app_server is now a regular BServer.


# 8a86ad75938a5ec3988d8f0d7deed79f29d3e1c6 09-Jun-2015 Axel Dörfler <axeld@pinc-software.de>

libbe: Fixed current_team() to work after a fork.

* This allows to start a valid looper in the forked child, for example.


# 6c40fc5dfcd03d69d585754505e6b17287a42082 21-Jan-2012 czeidler <haiku@clemens-zeidler.de>

Reconnect BApplication and trigger reconnect of all BWindows in an application.
* handle bitmap reconnect request in the app server


# 4bb026ea4b7b97a757d6139b8a10d56107f9ba00 14-Jun-2011 Ingo Weinhold <ingo_weinhold@gmx.de>

Missing header.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42175 a95241bf-73f2-0310-859d-f6bbb57e9c96


# ec1bcf6243a5d41c449c9914e2c26485d8ce943c 01-Dec-2009 Axel Dörfler <axeld@pinc-software.de>

* Added private methods get_app_server_port() (that stores the server port,
and doesn't have to find it every time), and create_desktop_connection() that
is now used from BApplication::_ConnectToServer() as well as the DesktopLink.
* Move PortLink::SetTo() into base class ServerLink.
* Eliminated duplicated member fReplyPort in DesktopLink.
* Cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34397 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 240a2c89e8156a383e42f5242bf2fae863096cff 30-Nov-2009 Ingo Weinhold <ingo_weinhold@gmx.de>

Removed no longer needed gInitializationLock.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34385 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 4b9cf09f14ca4d93f9063d4b824758ce1ea599c0 29-Nov-2009 Ingo Weinhold <ingo_weinhold@gmx.de>

* Got rid of is_running_on_haiku(). It was used for the test environment,
but wouldn't work when running it on Haiku anyway. At any rate, it was
relatively expensive (uname()) and used already in the libbe
initialization.
* Got rid of the non-Haiku support of main_thread_for().


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34371 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 67c578e73f123ecb32bf97f62c9bd300638d4f91 10-Oct-2007 Ingo Weinhold <ingo_weinhold@gmx.de>

Added global lock that can be used for lazy initializations.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22502 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 88df8322a9670721743a057e6bb008365ae21f71 25-Jan-2007 Axel Dörfler <axeld@pinc-software.de>

Optimized current_team() - it now uses a static variable to hold the team ID.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19964 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 5edcfe961946df304cc90d04f304c8e2fbc5b4a6 03-Jan-2006 Axel Dörfler <axeld@pinc-software.de>

Cleanup!


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15806 a95241bf-73f2-0310-859d-f6bbb57e9c96


# cd05d511e6e4fe89a77b71463c4d79bd9e723e1e 14-Jul-2005 Ingo Weinhold <ingo_weinhold@gmx.de>

Introduced generalized versions of get_app_path() and get_app_ref() returning the path/ref for an arbitrary team.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13681 a95241bf-73f2-0310-859d-f6bbb57e9c96


# c39d6b973737cfca32ebfab90734a184d532d37a 07-Jul-2005 Ingo Weinhold <ingo_weinhold@gmx.de>

* Introduced is_app_showing_modal_window(). Not implemented yet. Maybe
someone with app server insight wants to do that. :-)
* Simplified main_thread_for() for Haiku.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13538 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 9171d496e2123f98d252352ecb8b09c166fa5515 16-Jan-2005 Ingo Weinhold <ingo_weinhold@gmx.de>

Added function is_running_on_haiku(), which returns at runtime whether we're running under Haiku.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10783 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 83969b958149c8448fccf7d7cdc9a921bb4b1c21 04-Feb-2003 Ingo Weinhold <ingo_weinhold@gmx.de>

B_PATH_NAME_LENGTH + 1 -> B_PATH_NAME_LENGTH.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2631 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 121f83dd58597966c53f2e63635d9cd7713fa0b2 12-Oct-2002 Ingo Weinhold <ingo_weinhold@gmx.de>

Moved the miscellaneous app kit functions into the BPrivate namespace and added the function current_team() which returns the ID of the current team.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1501 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 41b5558a3cbac71ff27f7812aa4085773daa9daa 19-Aug-2002 Ingo Weinhold <ingo_weinhold@gmx.de>

Added explanative comment to get_app_path() and fixed the error return value of main_thread_for().


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@827 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 4d7538b1800b88f1d56e6c80d94b46ab2013f3ed 28-Jul-2002 Ingo Weinhold <ingo_weinhold@gmx.de>

Moved some reusable code from BApplication to this shiny new place.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@510 a95241bf-73f2-0310-859d-f6bbb57e9c96