Commit Graph

177 Commits

Author SHA1 Message Date
Ingo Weinhold
c99847b4cd Unimplemented ActivateApp(); it has to ask the app server instead. Moved its code to UpdateActiveApp(), which has exactly the matching semantics. :-)
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3053 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-04-05 17:15:13 +00:00
DarkWyrm
0f434a0aad The mother of all commits. :P
Unremoved zlib and added libpng to public libs (C'mon DW, make up your mind... ;^)
Added screenshot support to app_server
Added full keyboard message support to app_server
Added UseLibraryHeaders and LibraryHeaders rules to jamrules
Updated ColorUtils to convert uint32 colors to rgb_colors
BAppServerLink now autolocks client-server communications on the client side (as it should)
app_server now also juliennes and makes french fries. Yum.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3045 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-03-30 00:17:50 +00:00
DarkWyrm
fec61feeb8 Initial checkin of PortQueue class
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3036 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-03-25 01:16:34 +00:00
DarkWyrm
dc4e96ca20 Removed bug which caused goofy app signature names in app_server
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3003 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-03-23 19:36:04 +00:00
DarkWyrm
610785086b Filled in AppServerLink
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3000 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-03-23 18:51:49 +00:00
DarkWyrm
f9439a60dc Initial checkin of AreaLink
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2977 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-03-21 15:19:37 +00:00
DarkWyrm
c328988230 Effectively made Attach(*,size) a const function
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2974 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-03-21 13:09:22 +00:00
ejakowatz
74d9216544 New tests for Add/Find/Replace/HasRef, and tweak in MessageTest.cpp to use
it.  Also, minor fix in entry_ref handling in BMessage::AddData().


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2967 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-03-20 06:02:27 +00:00
ejakowatz
e60c601e2d Tweaks to make the tests work correctly and properly scope a BMessage
function.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2966 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-03-20 05:37:07 +00:00
ejakowatz
9895f0ea8a Some clean up and tweaks to the specifier handling code, plus the
beginnings of SendReply() functionality.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2958 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-03-19 08:01:59 +00:00
ejakowatz
2be975a1ee _get_object_token_ has found its permanent home in AppMisc.h, which the
other files were modified to include.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2957 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-03-19 08:00:50 +00:00
ejakowatz
b1055b4c2d This is all the code for the backing store for BMessage (BMessageBody &
BMessageField) for the "template madness" version.  Also included is
BDataBuffer which is a little reference counting raw data container.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2955 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-03-19 07:58:17 +00:00
ejakowatz
9abaf1dfa7 Resolved conflict. DarkWyrm tweaked the old version (which I had #if 0'd
out all over the place).  There is now a giant
#ifdef USING_TEMPLATE_MADNESS
separating the two versions.  At some point, the common code should be
reconciled.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2953 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-03-19 05:02:31 +00:00
DarkWyrm
c503a7bc9c Added BHandler tokens to app_server communications setup
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2947 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-03-19 01:11:24 +00:00
DarkWyrm
e26cbbcf17 Implemented _get_object_token_ to allow app_server to receive BHandler tokens
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2946 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-03-19 00:59:20 +00:00
DarkWyrm
53ea435d7b Multiple fixes and added to build. Not yet complete, but close
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2925 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-03-16 21:43:28 +00:00
DarkWyrm
71c040584c FlushWithReply(ReplyData *) checks for non-NULL buffers - eliminates a memory leak
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2902 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-03-12 18:01:55 +00:00
DarkWyrm
ca34e8a04c Added startup code to talk to app_server
We can now run simple applications with app_server!!


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2900 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-03-12 17:17:17 +00:00
DarkWyrm
c51942ea6e Removed fixed attachment limit
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2870 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-03-06 22:24:45 +00:00
DarkWyrm
364bb57e76 Updated sources to reflect changes in <ServerProtocol.h>
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2832 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-02-24 15:44:37 +00:00
DarkWyrm
16d1f45f81 Implemented IsCursorHidden
Removed PortLink usage where unnecessary


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2813 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-02-23 21:31:58 +00:00
Ingo Weinhold
de1a825ec8 Added missing file AppServerLink.cpp.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2710 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-02-14 23:13:31 +00:00
Ingo Weinhold
4b883396bd Fixed warning.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2684 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-02-11 18:18:29 +00:00
Ingo Weinhold
2ed834e3f6 Cleaned up BRoster's friends mess. All access to private BRoster functionality is now done through the newly added BRoster::Private class, which is BRoster's only friend (poor BRoster ;-).
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2664 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-02-08 23:29:21 +00:00
Ingo Weinhold
83969b9581 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
2003-02-04 23:47:30 +00:00
DarkWyrm
fe517480c3 More testing and fixes. Removed an attachment bug.
Port capacity checking a compile-time option.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2018 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-11-20 00:17:22 +00:00
DarkWyrm
51c9c2f980 Added new FlushWithReply method and some error checking. Mostly tested.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2010 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-11-19 00:30:49 +00:00
shadow303
18d65fb5c0 Include ServerProtocol.h instead of using #define SET_CURSOR_BCURSOR
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1905 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-11-11 22:03:35 +00:00
DarkWyrm
7c7ee64a50 Partially implemented SetCursor
Completely implemented ShowCursor, HideCursor, ObscureCursor
Documented necessary steps for connect_to_app_server


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1898 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-11-09 22:22:22 +00:00
shadow303
af554d2ae4 Add Clipboard to build
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1892 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-11-09 21:17:23 +00:00
shadow303
bcb5296173 Minor bug fixes
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1891 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-11-09 21:16:58 +00:00
Tyler Dauwalder
1bde02ae7b Fleshed out any missing pieces of BRoster::
- ClearRecent{Docs,Folders,Apps}
- AddToRecentApps()
- {Load,Save}RecentLists()


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1878 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-11-08 08:36:08 +00:00
DarkWyrm
e4840f5bd2 Checkin for Gabe Yoder
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1826 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-11-02 23:33:33 +00:00
Tyler Dauwalder
44db8a0885 + Added {Get,Add,Clear}Recent{Apps,Documents,Folders} framework
+ Fleshed out {Get,Add}RecentApps calls
+ Updated argument names for GetRecent{Documents,Folders} to
  versions used in R5 release notes in the Be Book.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1715 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-27 07:46:32 +00:00
ejakowatz
259a6f747a Proxy for the connection to app_server; just a skeleton at this point.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1637 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-25 01:10:10 +00:00
DarkWyrm
b010ca6720 Checkin for Gabe Yoder
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1590 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-22 00:08:45 +00:00
Ingo Weinhold
edb7407e80 Implemented {Start,Stop}Watching().
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1577 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-18 14:04:40 +00:00
Ingo Weinhold
8c7ccd0bda Implemented BRoster::Broadcast().
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1541 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-15 22:30:53 +00:00
Ingo Weinhold
05d576c2e8 Added/fixed some doxygen comments.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1511 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-14 21:05:02 +00:00
Ingo Weinhold
6f1a85effd Implemented BMessageRunner class.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1502 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-12 22:41:13 +00:00
Ingo Weinhold
121f83dd58 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
2002-10-12 22:40:21 +00:00
Ingo Weinhold
065aba535a Added BMessageRunner to the build. Not implemented yet.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1464 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-08 21:56:36 +00:00
Ingo Weinhold
beebfc0af4 Added empty implementation with doxygen comments for public methods.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1463 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-08 21:53:27 +00:00
DarkWyrm
7fb951b11d Added PortLink class to libopenbeos build
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1445 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-07 23:36:52 +00:00
Ingo Weinhold
8c7b7c869d * resolve_app() and translate_ref() do now traverse the supplied ref and
set it to the resolved entry. Fixed bug causing non-traversal of app
  links. Unset the app meta MIME type's app hint, if it is invalid.
* resolve_app(): Fixed incorrect behavior in case the signature of the
  found app is not the signature of the preferred app.
* Implemented SetSignature(). It is indeed needed and I finally found out.
  :-)
* xLaunchAppPrivate(): The document ref is always resolved.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1436 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-07 21:59:57 +00:00
Ingo Weinhold
d8c0f6e4f5 InitData(): Set the correct signature when pre-registered under a wrong one.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1435 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-07 21:52:15 +00:00
Ingo Weinhold
f2d61cef5e Implemented the Launch() methods and their helpers.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1413 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-06 22:51:19 +00:00
Ingo Weinhold
717a24b7a6 Fixed synchronous SendMessage() calls. _send_()'s wantsReply must always be false, otherwise we get flooded with B_NO_REPLY messages.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1412 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-06 22:50:23 +00:00
Ingo Weinhold
ad4fdf8d15 * Don't uninitialized be_app_messenger in the destructor.
* Fixed missing variable initialization in GetSupportedSuites().
* InitData(): Don't post B_ARGV_RECEIVED to ourselfs when pre-registered.
* InitData(): Added create_app_meta_mime().


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1411 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-06 22:48:39 +00:00
Ingo Weinhold
c0aa02a83c Added doxygen documentation for BRoster::Launch(). Implementation tomorrow. :-)
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1373 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-04 21:05:52 +00:00
Tyler Dauwalder
ef3fb6465d Added RegistrarThreadManager to the build
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1324 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-01 07:25:04 +00:00
Tyler Dauwalder
9f6eedfaf3 + Renamed and moved from src/servers/registrar/ThreadManager.{h,cpp}
+ Fixed iteration bugs
+ Added more complete debugging output


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1320 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-01 07:22:11 +00:00
DarkWyrm
8d22950d01 API and stability improvements
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1318 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-09-30 22:34:20 +00:00
Tyler Dauwalder
05b9dff7c4 Added RegistrarThread to the build
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1272 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-09-29 07:13:11 +00:00
Tyler Dauwalder
cd7adc0b06 RegistrarThread class, which is the base class for threads
spawned in the registrar.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1265 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-09-29 07:01:43 +00:00
shatty
0fb7a1079b fixed newline at end of file.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1242 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-09-28 09:51:57 +00:00
Ingo Weinhold
92a1f24167 Implemented BRoster::FindApp() and a bunch of helper functions needed for it. Tweaked some of the helpers signatures.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1110 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-09-22 00:12:56 +00:00
Stefano Ceccherini
15685713d1 Commit per Jeremy Rand, fixes build on Dano compiler
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1097 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-09-20 11:06:06 +00:00
Ingo Weinhold
7bb1eb8242 Fixed BLooper::UnlockFully(): It assumed benaphore style locking whereas semaphore style is used.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@977 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-09-03 16:56:48 +00:00
Ingo Weinhold
69b461cdbe Fixed typo.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@965 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-09-03 01:09:20 +00:00
ejakowatz
77a6586a2e Another test with minor tweaks to BLooper.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@874 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-25 15:44:28 +00:00
ejakowatz
cb5b0f6d58 Fixed SetCommonFilterList() so that the same list can't be added to more
than one looper.
Implemented UnlockFully(), and changed destructor and Quit() to use it.
Reordered the destructor slightly so as to delete fLockSem *after* the call
to UnlockFully().


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@869 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-24 20:38:15 +00:00
ejakowatz
d008c62d53 Fixed a narsty little bug that suddenly started rearing its ugly head in
IsMessageWaiting() test #3.  fLastMessage wasn't getting initialized to
NULL on construction, and the random value was finally biting me.  All
better now.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@856 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-24 03:08:44 +00:00
ejakowatz
ff1ade6b3d More tests and fixes for bugs exposed by them. Also removed spurious
instantiation of BRoster from BArchivable, line 323, as per Tyler's
mention. =)


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@852 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-22 03:43:06 +00:00
jrand
e39c71fce8 Remove R3 compatibility details from BPropertyInfo, fix memory leak and implement endian-ness
aware flatten and unflatten code.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@844 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-21 06:44:27 +00:00
Ingo Weinhold
41b5558a3c 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
2002-08-19 20:21:10 +00:00
jrand
3841621d26 Fixed Flatten() and FlattenedSize() implementation so the unit tests pass now.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@813 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-19 04:13:06 +00:00
jrand
52ec2aa88b Fixed Unflatten() and FindMatch() so the unit tests pass now.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@805 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-18 06:52:03 +00:00
jrand
75d07a502f Add the BPropertyInfo implementation to the library.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@804 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-18 04:30:06 +00:00
jrand
765a2199e3 Add initial BPropertyInfo implementation, courtesy of Marc Flerackers.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@803 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-18 04:29:14 +00:00
Ingo Weinhold
4a87ab984b Set the the application BHandler's name correctly.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@754 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-13 22:38:24 +00:00
ejakowatz
54831cd6f1 Initial checkin for Gabe Yoder.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@739 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-13 14:02:00 +00:00
Ingo Weinhold
bbab11ba30 Changed BRoster::GetRunningAppInfo() return value back to B_BAD_TEAM_ID in case the team ID is < 0. I thought R5 returns B_ERROR, but it does only for -1, otherwise it also returns B_BAD_TEAM_ID. We don't mimic this slightly insane behavior.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@680 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-09 23:50:19 +00:00
Ingo Weinhold
ca3e9dba80 Fixed the return value in case of team ID < 0. R5 returns B_ERROR instead of B_BAD_TEAM_ID and so do we now.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@677 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-09 23:34:04 +00:00
Ingo Weinhold
9e9f5a1ad3 Improved BMessenger::InitData() a bit: Now only one roster call is done, when a signature but no team ID is given.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@676 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-09 23:31:40 +00:00
Ingo Weinhold
672c1ea9ba Fixed return codes in InitData().
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@623 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-06 22:19:37 +00:00
Ingo Weinhold
9231d6b096 Added be_roster check in InitData().
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@622 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-06 22:18:23 +00:00
ejakowatz
2e2e159adc Work on ResolveSpecifier().
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@599 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-06 03:58:59 +00:00
Ingo Weinhold
6a75716301 Added TODO items in the destructor.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@579 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-05 00:55:13 +00:00
Ingo Weinhold
c9f4f5e164 Fixed InitData(): It must not be possible to construct a messenger targeting a B_ARGV_ONLY app.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@577 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-05 00:48:58 +00:00
Ingo Weinhold
c26a5cea91 * The destructor doesn't kill the looper thread any more, as this doesn't
work very well with BApplication and has some issue with plain loopers
  too.
* DispatchMessage(): _QUIT_ doesn't delete the object any longer. The
  looper thread simply falls through the dispatching loop and deletes
  the object.
* Caused by not killing the looper thread in the destructor, Quit() had
  to be adjusted. When called from the looper thread the thread exists.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@576 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-05 00:47:31 +00:00
Ingo Weinhold
98207f6f77 Fixed Quit():
* Error message, if not locked.
* Lock(), quit, Unlock(), if not locked.
* Don't call BLooper:Quit() any more. We post a _QUIT_ message when being
  called from another than the looper thread.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@575 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-05 00:41:08 +00:00
ejakowatz
752c497115 The last remnants of the Old Repub ... er, static looper list data has been
removed.  The old static BLooper functions for managing the looper list are
still there, but they are officially deprecated.  The approved interface
for this information is BPrivate::BLooperList, accessible via the global
BPrivate::gLooperList variable.  Being as it lives in BPrivate, it is for
API-internal use *ONLY*.  User apps use it to their own risk.
Also added a small test to make sure that the size of BLooper stays the
same.  I will probably add this to other classes as well; doesn't hurt to
be safe. =)


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@572 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-04 17:16:56 +00:00
ejakowatz
ebbcbbca01 Implemented count_loopers()/windows() and looper/window_at(). Minor
changes to BLooperList to accomodate.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@568 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-03 23:18:14 +00:00
Ingo Weinhold
9986313c0c Fixed some bugs/behavioral differences to the R5 implementation.
* Run() was returning fTaskID, which was invalidated by Quit().
* assert_app_signature() -> check_app_signature(). InitData() now quits
  when an error occured and no error variable has been supplied. That seems
  to be what R5 does.
* When args are present B_ARGV_RECEIVED is always sent to the own team,
  even if the app flags include B_ARGV_ONLY. But it is sent to a remote
  application (already running instance), only if that app has NOT
  B_ARGV_ONLY set.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@564 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-03 16:19:31 +00:00
ejakowatz
0b55d6648f More tests, more fixes.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@528 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-07-29 04:09:50 +00:00
ejakowatz
7bf6c06936 More tests with fixes to BLooper so it will pass those tests.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@527 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-07-29 03:08:43 +00:00
ejakowatz
b1698c8e74 Mostly fixes for silly compile error, plus an additional test.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@524 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-07-28 21:49:42 +00:00
Ingo Weinhold
7e24e06e2c Fixed synchronous SendMessage() versions. They need to add be_app_messenger as reply target, if the supplied reply target is invalid.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@523 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-07-28 21:23:52 +00:00
Ingo Weinhold
822cdddb68 Fixed bug in AddHandler(): SetNextHandler() must not be invoked on the looper itself.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@522 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-07-28 21:22:23 +00:00
ejakowatz
2284462ccf Scripting-related changes. Also indulged in some unwarrented formatting
anality. =P


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@519 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-07-28 20:28:00 +00:00
Ingo Weinhold
1e298dbb58 Added AppMisc.cpp.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@514 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-07-28 19:33:26 +00:00
Ingo Weinhold
8a526591a0 * Moved some reusable code into AppMisc.cpp/h.
* Init be_app in InitData().
* Uninit be_app and be_app_messenger in BApplication destructor.^


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@513 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-07-28 19:33:00 +00:00
Ingo Weinhold
8cd292013b Added _send_to_roster_() and _is_valid_roster_mess_().
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@512 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-07-28 19:30:27 +00:00
Ingo Weinhold
4d7538b180 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
2002-07-28 19:26:21 +00:00
ejakowatz
80a604c999 All things BMessage; initial check in.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@503 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-07-28 17:45:25 +00:00
Ingo Weinhold
d958d04793 Added doxygen comments for the implemented methods and fixed some smaller issues.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@493 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-07-28 13:34:44 +00:00
Ingo Weinhold
3057c103f5 Init be_app_messenger in InitData().
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@492 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-07-28 13:32:52 +00:00
Ingo Weinhold
92cf4c7532 Implemented IsRunning(), TeamFor(), GetAppList(),
Get{Running,Active,}AppInfo() and ActivateApp().


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@482 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-07-28 00:20:37 +00:00
Ingo Weinhold
47924e2bed A comment to remind me to call create_app_meta_mime() in InitData() once it is available.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@481 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-07-28 00:18:29 +00:00