Tyler Dauwalder
dff6cb3f88
+ Added code for:
...
- {Get,Set}PreferredApp()
- {Get,Set}AppHint()
- {Get,Set}Icon() (though it's a hacked up temporary version)
+ Replaced B_SIMPLE_DATA with B_REG_RESULT
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@820 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-19 08:40:24 +00:00
Tyler Dauwalder
e9e5603860
Forgot a #include, I guess...
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@819 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-19 08:38:16 +00:00
Tyler Dauwalder
55f345fd20
+ Added code for:
...
- {Get,Set}PreferredApp()
- {Get,Set}AppHint()
- {Get,Set}Icon()
+ Added any missing doxygen
SetIcon() is currently not implemented as I would like,
due to us needing an OBOS::BBitmap implementation.
Thus there are two versions and the GetIconData()
function until that day comes around.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@818 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-19 08:37:50 +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
Ingo Weinhold
83a812a1bb
Adjusted the SetSupportedTypes() doxygen comments to reflect knowledge gained from tests -- I hope, I understand the syncAll flag now.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@810 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-18 21:18:43 +00:00
beveloper
6c062d1f93
David McPaul added support for drop frame formats.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@806 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-18 12:26:59 +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
d6b205f306
Added BAppFileInfo header, empty implementation with doxygen comments.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@796 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-17 23:59:41 +00:00
Ingo Weinhold
f8b7638264
Fixed some comments.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@795 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-17 23:58:22 +00:00
Tyler Dauwalder
f231d0901c
+ Added fMimeDatabase member
...
Implemented:
+ {Get,Set}{Long,Short}Description()
+ {Start,Stop}Watching()
+ Install(), Delete(), IsInstalled()
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@788 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-16 22:06:51 +00:00
Tyler Dauwalder
fc7d3358e6
+ Added MimeDatabase
...
+ OBOS app kit headers are now used
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@787 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-16 22:03:26 +00:00
Tyler Dauwalder
9f3d4851ac
Initial checkin; MimeDatabase class used to handle all actual mime
...
database access.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@785 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-16 22:00:37 +00:00
Tyler Dauwalder
ef753322a8
Updated BQuery's BMessenger hack to be more legit (and
...
to allow libstorage to compile using public app kit headers)
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@783 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-16 21:58:44 +00:00
Ingo Weinhold
7835957412
The implementation is now complete and passes the tests. Reimplement almost all methods.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@780 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-16 17:47:12 +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
Matthew Wilber
11e946307a
made sure that when Translator add-on symbols are missing from the add-on they default to a NULL value
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@747 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-13 16:22:40 +00:00
matzon
1ee8035dab
fixed: check for null when checking in/outputFormats
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@746 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-13 15:57:39 +00:00
beveloper
16b7eea41a
Add some experimental media add-on instantiating support, more debugging and bugfixes
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@744 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-13 15:21:32 +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
Matthew Wilber
d359a8f9ef
Changed ReadAt() return codes so that when ReadAt() is called with pos >= the size of the BBitmap, it returns B_ERROR instead of B_BAD_VALUE. The BBitmapTranslator expects B_ERROR to be returned in this case and will return an error code as the result to the Translate call if B_ERROR is not returned.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@732 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-13 03:48:56 +00:00
beveloper
d6b71edf06
Updated to make media_addon_server work with the DormantNodeManager class
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@730 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-13 00:38:09 +00:00
beveloper
3ba329f7bf
Start using a class for management and (perhaps later) caching of dormant media nodes
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@719 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-12 19:38:19 +00:00
beveloper
867a12bf32
removed this file
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@718 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-12 19:38:19 +00:00
beveloper
44213a4da5
Changed to use the DormantNodeManager class.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@717 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-12 19:38:19 +00:00
Tyler Dauwalder
09d84e61b6
+ Changed StorageKit namespace to BPrivate::Storage
...
+ Changed Sniffer namespace to BPrivate::Storage::Sniffer
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@714 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-12 08:42:01 +00:00
Ingo Weinhold
36a3a8f023
Moved doxygen comments into the source file. Completed/extended/rewrote them. Changes to style and indentation.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@707 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-11 16:16:07 +00:00
beveloper
d2ea858781
add set_mouse_position() that was missing
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@696 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-11 00:55:10 +00:00
beveloper
0b4a36abc9
start with libgame.so
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@695 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-11 00:34:01 +00:00
beveloper
2e54c16421
start with libdevice.so
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@694 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-11 00:32:58 +00:00
beveloper
b61245f74e
add game kit and device kit
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@693 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-11 00:30:53 +00:00
Tyler Dauwalder
06d1abcdc8
Added DisjList.cpp
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@686 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-10 09:36:19 +00:00
Tyler Dauwalder
93d145bb01
+ Added support for "-i" flags and case insensitive matching
...
+ Renamed Expr class to DisjList, which is more descriptive
as to its function
+ Added ' and " to the list of allowed characters in an
unquoted string.
+ Added updated sniffer rule grammar to doxygen for the
Parser class
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@685 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-10 09:36: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
beveloper
3055ce2f77
David McPaul started working on this class and made this changes.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@678 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-09 23:39:16 +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
Tyler Dauwalder
fe70cd16af
+ Updated all the parsing code to use std::strings everywhere
...
instead of const char*'s to allow for rules with NULL characters
embedded in them.
+ Updated Rule::Sniff() to actually return a useful value
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@662 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-09 10:30:38 +00:00
Tyler Dauwalder
60ee71d302
+ Added some documentation
...
+ Fixed a bug with 0eXXX floats being handled improperly
+ Updated a few error messages to give proper character
stream positions.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@650 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-08 07:23:24 +00:00
Tyler Dauwalder
0bc621d53b
+ Added some documentation
...
+ Now verifies the given priority is valid
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@649 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-08 07:21:31 +00:00
Tyler Dauwalder
10db8711a8
Added some documentation
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@648 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-08 07:20:47 +00:00
Tyler Dauwalder
ef88abd1be
+ Added priority verification (0.0 <= valid priority <= 1.0)
...
+ Fixed a stupid bug in my hexToChar() function
+ Added code to actually return the parsed in priority to ParsePriority()...
+ Added code to actually SetTo() the result in ParseRule()...
+ Changed most "Sniffer scanner error" messages to "Sniffer
pattern error" messages.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@630 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-07 07:48:30 +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
Tyler Dauwalder
390dce8da6
Parser is finished (or very nearly so)!!! :-)
...
+ Added support for extended notation floating point numbers,
as well as signed (+ and -) floats.
+ Finished up parsing code
+ Moved Err class into it's own header/source pair, since I
started using it all over the place in the sniffer code.
+ Did my darndest to make sure I wasn't leaking memory
anywhere.
+ Matched up error messages as best as possible with R5's
error message. Some couldn't be matched, some were improved.
There *are* a few things left to do. I don't think priorities are
verified to be valid (0.0 <= x <= 1.0). More tests also need to
be written. Things have solidified enough now that documentation
is a reasonable thing to start considering as well.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@608 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-06 08:37:14 +00:00
Tyler Dauwalder
01293d6ed7
+ Added InitCheck()
...
+ Added Priority()
+ Added Sniff()
+ Replaced ExprList typedef with plain old std::vector<Expr*>
so I wouldn't forget what the hell kind of list I was working with.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@607 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-06 08:32:27 +00:00
Tyler Dauwalder
9d97f52d8d
Added InitCheck() and GetErr()
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@606 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-06 08:30:44 +00:00
Tyler Dauwalder
e3c631d629
Added new sniffer files to libstorage.so
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@604 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-06 08:29:20 +00:00
Tyler Dauwalder
74cd43ec44
New mime sniffer support classes
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@601 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-06 08:25:41 +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
Matthew Wilber
ec80db22cf
added more/better error checking/handling
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@556 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-02 16:52:27 +00:00
Matthew Wilber
cbb8752877
added more/better error checking/handling, changed variables to more appropriate types, updated comments, changed some return codes
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@553 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-02 02:52:36 +00:00
Tyler Dauwalder
0d2978ea27
Added Range.cpp
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@533 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-07-29 07:03:44 +00:00
Tyler Dauwalder
68faee1082
+ Switched to std::vector in favor of BList
...
+ Added a few minor tweaks
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@532 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-07-29 07:03:23 +00:00
Tyler Dauwalder
4574a75fc5
+ Got rid of global TokenStream object
...
+ Started on Parser class
+ Moved parsing functions into Parser class
+ Added Pos() member to Err class to allow for
snazzy BMimeType::CheckSnifferRule() error strings.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@531 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-07-29 07:01:56 +00:00
Tyler Dauwalder
51156f1f46
Way too many builds later, I finally realized I put these #includes in the wrong place.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@530 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-07-29 06:58:52 +00:00
Tyler Dauwalder
0be1fe8a1f
New MIME Sniffer files
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@529 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-07-29 06:57:11 +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
Tyler Dauwalder
224e92720e
Added "position in original character stream" marker to Token class
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@490 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-07-28 04:13:30 +00:00
Tyler Dauwalder
dc685e9ad8
Finished scanner:
...
+ Octals are now handled properly in both quoted and
unquoted strings
+ Added support for \xXX style hex escapes in both
quoted and unquoted strings
+ Finished up the tests, so I think pretty much everything
should be working
NOTE: signed floating point numbers are no longer supported,
as they have no usefulness to sniffer rules
NOTE: extended format floating point numbers (i.e. 2.4e23) are
no longer supported, as they have no usefulness to sniffer rules.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@489 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-07-28 03:21:21 +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
Tyler Dauwalder
5da549240a
+ Moved internally used classes into header to allow for testing.
...
+ Added EmptyToken, Integer, and FloatingPoint TokenTypes.
+ Added IntToken and IntegerToken classes.
+ Updated scanner, which now handles numbers as well. I believe
it's nearly complete, although I'm almost positive it doesn't
handle octals correctly yet...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@477 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-07-27 19:24:05 +00:00
Ingo Weinhold
2a2585c598
Fixed an unchecked error in get_app_path().
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@459 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-07-26 19:59:08 +00:00
Ingo Weinhold
b194af1035
Added message and codes, a flat_app_info structure and the name of roster side created app looper ports.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@458 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-07-26 19:57:58 +00:00
Ingo Weinhold
73a2b29f2e
* Implemented InitData(), which should now be complete with respect to
...
what we need for the roster.
* B_{ARGV,REFS}_RECEIVED and B_READY_TO_RUN messages are dispatched now.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@457 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-07-26 19:55:10 +00:00
Ingo Weinhold
92180c47a3
Get the current team not using fTaskID, the looper thread, but find_thread(NULL) instead. In InitData() the thread has not been spawned yet.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@456 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-07-26 19:51:49 +00:00
Ingo Weinhold
3b04471572
Implemented InitData(). BMessenger is complete.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@455 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-07-26 19:48:49 +00:00
Ingo Weinhold
496ffb0aa7
* Changed return type of some private methods from void to status_t.
...
AddApplication() returns the token via reference parameter and
additionally returns the team ID of the already running app (if any).
* Implemented AddApplication(), SetThreadAndTeam(), CompleteRegistration(),
IsAppPreRegistered(), RemovePreRegApp(), RemoveApp(), or to to say it
briefly the complete set of app registration helper functions.
* Implemented GetRunningAppInfo() and GetActiveAppInfo().
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@454 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-07-26 19:47:21 +00:00
Tyler Dauwalder
674e18fb18
Initial MIME sniffer rule parser checkin. The first draft of the
...
scanner portion of the parser is done, but completely untested
and unused. More to come...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@452 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-07-26 07:47:07 +00:00
ejakowatz
e75560e6cb
Initial checkin.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@433 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-07-25 04:56:14 +00:00
Tyler Dauwalder
4177635e24
Added initialization and MIME string functions.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@416 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-07-24 09:29:16 +00:00
Ingo Weinhold
caf7e04f7f
Implemented missing app_info constructor and destructor.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@411 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-07-23 23:41:15 +00:00
Tyler Dauwalder
762a48a083
+ Finished BMimeType doxygen
...
+ Finally checked in my remaining BMimeType tests... :-)
NOTE -- The BMimeType::GetSupportingApps() test is
not yet finished. For some reason GetSupportingApps()
is returning a few strange signatures that don't appear
to be in the database. I'm still figuring out where they're
coming from.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@408 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-07-23 22:29:25 +00:00
Tyler Dauwalder
5ebee1cf0a
BVolume and BVolumeRoster updates, courtesty of Vincent Dominguez
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@405 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-07-23 21:39:49 +00:00
ejakowatz
459de0d777
Fixed stupid syntax errors generated by my property_info dump tool. Now to
...
fix the tool ...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@402 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-07-23 21:25:54 +00:00
Ingo Weinhold
17c00872bb
Implemented _init_roster_() and added _delete_roster_() which are now responsible for be_roster.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@399 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-07-23 21:21:55 +00:00
Ingo Weinhold
a3a31e261e
Added library initialization/termination functions.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@398 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-07-23 21:20:39 +00:00
ejakowatz
ec9673bf48
Added/tweaked tests for BLooper; fixes to BLooper stemming from those tests
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@389 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-07-23 05:09:43 +00:00
Ingo Weinhold
64c088d0d8
Added BRoster and BApplication to libopenbeos.so.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@380 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-07-21 22:48:40 +00:00
Ingo Weinhold
30304f2da4
Fixed warnings.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@379 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-07-21 22:48:00 +00:00
Ingo Weinhold
c7f20c708d
Added minimal implementation to be able to Run() the application and to have MessageReceived() served. BApplication is aware of the registrar signature and names the looper port respectively.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@378 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-07-21 22:46:58 +00:00
Ingo Weinhold
cef079abd9
Added a minimal BRoster implementation, i.e. constructor + InitMessengers().
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@377 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-07-21 22:43:52 +00:00
Ingo Weinhold
e0cc8c68a4
The beginning of the registrar - API classes interface.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@373 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-07-21 22:37:39 +00:00
Ingo Weinhold
8f1dc17d91
* Assignment operator didn't return *this.
...
* Fixed comparisson operators: The team ID is ignored.
* Fixed second synchronous SendMessage(). The reply argument is checked for
NULL now, `if (error)' -> `if (error == B_OK)', and map B_BAD_TEAM_ID to
B_BAD_PORT_ID, which is what the R5 implementation returns.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@360 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-07-21 00:55:55 +00:00
Ingo Weinhold
76858a334d
BLooper::LockWithTimeout() was always using B_INFINITE_TIMEOUT.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@344 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-07-19 17:08:50 +00:00
ejakowatz
19ba51b74d
More BLooper tests and minor tweaks.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@288 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-07-17 20:19:53 +00:00
ejakowatz
04de1897ed
More tests for BLooper.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@286 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-07-17 19:50:28 +00:00
ejakowatz
38f5ceca01
Some more BLooper unit tests, with some minor resulting tweaks to BLooper.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@264 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-07-17 06:18:27 +00:00
Ingo Weinhold
e1f41e5d53
BMessenger::Target() uses BLooperList now.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@261 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-07-16 23:28:07 +00:00
Ingo Weinhold
0e1fa9f1ad
LOCATE is now set for the /boot/home/config/lib copy of libopenbeos.so.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@260 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-07-16 23:27:01 +00:00
ejakowatz
e3684651de
Finally figured out why the first assert in IsMessageWaiting5() always
...
worked under R5 but only sometimes for OBOS. Answer: the OBOS
implementation of BLooper was attempting to lock itself prior to fetching
the message from the queue. I moved the lock attempt after the fetch and
it worked the same. I realized that if the system was loaded heavily
enough, the assert might still fail simply because the looper would not had
enough time to get to the fetch (thereby emptying the queue), making the
assert pretty useless. Given that it was originally there as a probing
test (rather than as an integral part of the unit test), there is no real
need for it anyway, so it is no longer used.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@250 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-07-16 07:51:51 +00:00
ejakowatz
df226cd7b3
A new class to manage the list of loopers in a team. Provides the
...
functionality of the existing static BLooper functions (which now call
through to it) in a nicer package. New code should use the global instance
of this (BPrivate::gLooperList) instead of the old BLooper functions (which
are officially deprecated).
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@244 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-07-15 16:04:06 +00:00
ejakowatz
abb579331f
Tweaks to deal with new repository hierarchy and use of unified CppUnit;
...
some bug fixes and a couple of new tests for BLooper.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@242 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-07-15 15:51:31 +00:00
beveloper
7d3a98264a
I felt I had to do *something*
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@230 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-07-15 00:33:52 +00:00
Ingo Weinhold
7561e939f5
Added libtranslation.so to the build.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@182 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-07-13 20:38:56 +00:00
beveloper
b6de9d11ff
removed compiler warnings
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@138 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-07-12 15:16:31 +00:00
beveloper
48ff964fe7
removed warnigs
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@131 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-07-12 14:01:44 +00:00
beveloper
e020762819
finally get libmedia.so building :-)
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@107 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-07-12 00:25:55 +00:00
Ingo Weinhold
35d696eaba
Added the midi and screensaver kits to the build.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@90 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-07-11 21:05:38 +00:00
Ingo Weinhold
0a483e7221
Fixed includes.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@86 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-07-11 19:54:41 +00:00
Ingo Weinhold
19f0c92e2f
Added the media kit to the build.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@85 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-07-11 19:54:20 +00:00
ejakowatz
865f9d8e38
Fixes in BLooper and its tests.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@84 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-07-11 15:49:01 +00:00
beveloper
24509b3b8e
Stop these files breaking the build, needs to be fixed later
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@72 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-07-11 01:09:21 +00:00
Ingo Weinhold
70c31e5157
Reflect the latest change to the UsePublicHeaders rule.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@43 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-07-10 16:36:50 +00:00
Ingo Weinhold
32bc7795b0
Adjusted the original SK Jamfile to work in its new friendly neighborhood.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@28 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-07-10 02:02:00 +00:00
Ingo Weinhold
736994efc9
Uncommented Storage Kit include.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@27 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-07-10 02:00:19 +00:00
Ingo Weinhold
7e4c96cf79
SymLink.h included kernel_interface.h, which is a private header. Doh!
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@24 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-07-10 01:56:30 +00:00
Ingo Weinhold
98602e0409
Adjusted to the new tree structure, though currently (?) not needed.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@19 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-07-09 21:41:59 +00:00
Ingo Weinhold
66f77d7bfd
This one obviously got lost. Adjusted to the new tree.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@16 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-07-09 21:38:17 +00:00
ejakowatz
52a3801208
It is accomplished ...
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-07-09 12:24:59 +00:00