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

  • From: "Haiku" <trac@xxxxxxxxxxxx>
  • To: undisclosed-recipients: ;
  • Date: Sun, 12 Jul 2020 12:07:54 -0000

#8535: BRoster should expose a public API to show or hide a team
-----------------------------------+----------------------------
  Reporter:  hey68you              |      Owner:  nobody
      Type:  enhancement           |     Status:  assigned
  Priority:  normal                |  Milestone:  Unscheduled
 Component:  Kits/Application Kit  |    Version:  R1/Development
Resolution:                        |   Keywords:  BRoster
Blocked By:                        |   Blocking:
  Platform:  All                   |
-----------------------------------+----------------------------
Changes (by pulkomandy):

 * milestone:  R1 => Unscheduled


Old description:

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);
  }}}
}}}

New description:

 There are 2 '''private''' API functions that Deskbar uses to show and hide
 all windows of a running application:

 The 2 private functions are:

 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):

 {{{#!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:

 {{{#!c++
   status_t HideTeam(team_id team);
   status_t BringTeamToFront(team_id team);
 }}}

--
-- 
Ticket URL: <https://dev.haiku-os.org/ticket/8535#comment:4>
Haiku <https://dev.haiku-os.org>
The Haiku operating system.

Other related posts: