Use pkg-config to find ncursesw
[centerim5.git] / src / AccountStatusMenu.h
blobf73684c3110bb57c675be089f09f24bc838a2f67
1 // Copyright (C) 2007 Mark Pustjens <pustjens@dds.nl>
2 // Copyright (C) 2010-2015 Petr Pavlu <setup@dagobah.cz>
3 //
4 // This file is part of CenterIM.
5 //
6 // CenterIM is free software; you can redistribute it and/or modify
7 // it under the terms of the GNU General Public License as published by
8 // the Free Software Foundation; either version 2 of the License, or
9 // (at your option) any later version.
11 // CenterIM is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 // GNU General Public License for more details.
16 // You should have received a copy of the GNU General Public License
17 // along with CenterIM. If not, see <http://www.gnu.org/licenses/>.
19 #ifndef ACOUNTSTATUSMENU_H
20 #define ACOUNTSTATUSMENU_H
22 #include <cppconsui/MenuWindow.h>
23 #include <libpurple/purple.h>
25 class AccountStatusMenu : public CppConsUI::MenuWindow {
26 public:
27 AccountStatusMenu();
28 virtual ~AccountStatusMenu() override {}
30 // FreeWindow
31 virtual void onScreenResized() override;
33 protected:
34 void openStatusPopup(CppConsUI::Button &activator, PurpleAccount *account);
36 private:
37 class StatusPopup : public MenuWindow {
38 public:
39 StatusPopup(PurpleAccount *account);
40 virtual ~StatusPopup() override {}
42 protected:
43 void setStatus(CppConsUI::Button &activator, PurpleAccount *account,
44 PurpleStatusType *status_type, bool active);
46 private:
47 CONSUI_DISABLE_COPY(StatusPopup);
50 CONSUI_DISABLE_COPY(AccountStatusMenu);
53 #endif // ACOUNTSTATUSMENU_H
55 // vim: set tabstop=2 shiftwidth=2 textwidth=80 expandtab: