~tatokis/unity/gcc-72-errors

1739.7.1 by Andrea Azzarone
First draft of a shortcuts hint overlay...
1
// -*- Mode: C++; indent-tabs-mode: nil; tab-width: 2 -*-
2
/*
3
 * Copyright (C) 2011 Canonical Ltd
4
 *
5
 * This program is free software: you can redistribute it and/or modify
6
 * it under the terms of the GNU General Public License version 3 as
7
 * published by the Free Software Foundation.
8
 *
9
 * This program is distributed in the hope that it will be useful,
10
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12
 * GNU General Public License for more details.
13
 *
14
 * You should have received a copy of the GNU General Public License
15
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
16
 *
17
 * Authored by: Andrea Azzarone <azzaronea@gmail.com>
18
 */
2186.1.1 by Thomi Richards
Don't play fast and loose with raw pointers to shortcuts.
19
1739.7.1 by Andrea Azzarone
First draft of a shortcuts hint overlay...
20
#ifndef UNITYSHELL_SHORTCUTHINT_H
21
#define UNITYSHELL_SHORTCUTHINT_H
22
23
#include "AbstractShortcutHint.h"
24
25
namespace unity
26
{
27
namespace shortcut
28
{
29
30
class Hint : public AbstractHint
31
{
32
public:
1739.7.3 by Andrea Azzarone
Moves ctor and copy ctor in the abstract class.
33
  // Ctor
1739.7.5 by Andrea Azzarone
Const const const.
34
  Hint(std::string const& category,
35
       std::string const& prefix,
36
       std::string const& postfix,
37
       std::string const& description,
38
       OptionType const type,
2186.1.1 by Thomi Richards
Don't play fast and loose with raw pointers to shortcuts.
39
       std::string const& arg1,
1739.7.5 by Andrea Azzarone
Const const const.
40
       std::string const& arg2 = "",
41
       std::string const& arg3 = "");
2186.1.1 by Thomi Richards
Don't play fast and loose with raw pointers to shortcuts.
42
1739.7.3 by Andrea Azzarone
Moves ctor and copy ctor in the abstract class.
43
  // Dtor
1739.7.1 by Andrea Azzarone
First draft of a shortcuts hint overlay...
44
  ~Hint();
45
46
  // Public methods
47
  bool Fill();
48
};
49
50
} // namespace shortcut
51
} // namespace unity
52
53
 #endif // UNITYSHELL_SHORTCUTHINT_H