From eee5628778384ffb0ac874a8c0aefe70d1a8bac1 Mon Sep 17 00:00:00 2001 From: Ingo Weinhold Date: Thu, 5 Jun 2003 20:45:28 +0000 Subject: [PATCH] Sorry, forgot the default parameters. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3436 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- headers/os/app/Roster.h | 29 +++++++++++++++++------------ 1 file changed, 17 insertions(+), 12 deletions(-) diff --git a/headers/os/app/Roster.h b/headers/os/app/Roster.h index 4ea01e6c64..d56a6d2d08 100644 --- a/headers/os/app/Roster.h +++ b/headers/os/app/Roster.h @@ -100,36 +100,41 @@ public: status_t Broadcast(BMessage *message, BMessenger replyTo) const; // watching - status_t StartWatching(BMessenger target, uint32 eventMask) const; + status_t StartWatching(BMessenger target, + uint32 eventMask = B_REQUEST_LAUNCHED + | B_REQUEST_QUIT) const; status_t StopWatching(BMessenger target) const; status_t ActivateApp(team_id team) const; // launch app - status_t Launch(const char *mimeType, BMessage *initialMessage, - team_id *appTeam) const; + status_t Launch(const char *mimeType, BMessage *initialMessage = 0, + team_id *appTeam = 0) const; status_t Launch(const char *mimeType, BList *messageList, - team_id *appTeam) const; + team_id *appTeam = 0) const; status_t Launch(const char *mimeType, int argc, char **args, - team_id *appTeam) const; + team_id *appTeam = 0) const; status_t Launch(const entry_ref *ref, const BMessage *initialMessage = 0, team_id *appTeam = 0) const; status_t Launch(const entry_ref *ref, const BList *messageList, - team_id *appTeam) const; + team_id *appTeam = 0) const; status_t Launch(const entry_ref *ref, int argc, const char * const *args, - team_id *appTeam) const; + team_id *appTeam = 0) const; // recent documents, folders, apps void GetRecentDocuments(BMessage *refList, int32 maxCount, - const char *fileType, const char *appSig) const; + const char *fileType, + const char *appSig = 0) const; void GetRecentDocuments(BMessage *refList, int32 maxCount, const char *fileTypes[], int32 fileTypesCount, - const char *appSig) const; + const char *appSig = 0) const; void GetRecentFolders(BMessage *refList, int32 maxCount, - const char *appSig) const; + const char *appSig = 0) const; void GetRecentApps(BMessage *refList, int32 maxCount) const; - void AddToRecentDocuments(const entry_ref *doc, const char *appSig) const; - void AddToRecentFolders(const entry_ref *folder, const char *appSig) const; + void AddToRecentDocuments(const entry_ref *doc, + const char *appSig = 0) const; + void AddToRecentFolders(const entry_ref *folder, + const char *appSig = 0) const; private: class ArgVector;