Blame view

Modif/epsilon-master/apps/settings/settings_message_tree.h 554 Bytes
6663b6c9   adorian   projet complet av...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
  #ifndef SETTINGS_MESSAGE_TREE_H
  #define SETTINGS_MESSAGE_TREE_H
  #include <escher/message_tree.h>
  #include <apps/i18n.h>
  
  namespace Settings {
  
  class SettingsMessageTree : public MessageTree {
  public:
    constexpr SettingsMessageTree(I18n::Message label = I18n::Message::Default, const SettingsMessageTree * children = nullptr, int numberOfChildren = 0) :
      MessageTree(label, numberOfChildren),
      m_children(children)
    {
    };
    const MessageTree * children(int index) const override;
  private:
    const SettingsMessageTree * m_children;
  };
  
  }
  
  #endif