[haiku-bugs] [Haiku] #8535: BRoster should expose a public API to show or hide a team

  • From: "hey68you" <trac@xxxxxxxxxxxx>
  • Date: Mon, 07 May 2012 14:54:07 -0000

#8535: BRoster should expose a public API to show or hide a team
----------------------------------+------------------------------
 Reporter:  hey68you              |        Owner:  axeld
     Type:  enhancement           |       Status:  new
 Priority:  normal                |    Milestone:  R1
Component:  Kits/Application Kit  |      Version:  R1/Development
 Keywords:  BRoster               |   Blocked By:
 Blocking:                        |  Has a Patch:  0
 Platform:  All                   |
----------------------------------+------------------------------
 There are 2 '''private''' API functions that Deskbar uses to show and hide
 all windows of a running application:

 The 2 private functions are:
 {{{
 #!div style="font-size: 80%"
 They are declared in headers/private/interface/WindowInfo.h and
 implemented in InterfaceDefs.cpp
   {{{#!c++
   do_minimize_team(...);
   do_bring_to_front_team(...);
   }}}
 }}}


 I would be nice if these could be exposed as public APIs in BRoster (which
 already has the related public function):

 {{{
 #!div style="font-size: 100%"
   {{{#!c++
   status_t ActivateApp(team_id team) const;
   }}}
 }}}

 (The problem with ActivateApp() is that if the application is currently
 hidden, this method will not un-hide it).

 It was proposed as a start that we create 2 new '''public''' functions in
 BRoster:

 {{{
 #!div style="font-size: 100%"
   {{{#!c++
   status_t HideTeam(team_id team);
   status_t BringTeamToFront(team_id team);
   }}}
 }}}

-- 
Ticket URL: <http://dev.haiku-os.org/ticket/8535>
Haiku <http://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: