#ifndef __GRT_MODULES_TREE_H__
#define __GRT_MODULES_TREE_H__

namespace MySQL {
  namespace Grt {

    public ref class GrtModulesTree : public TreeModel
    {
    public:
      enum class Columns {
        Name = ::bec::ModulesTreeBE::Name
      };

      GrtModulesTree(GRT^ grt)
        : TreeModel(new ::bec::ModulesTreeBE(grt->get_unmanaged_object()))
      {}

      GrtModulesTree(::bec::ModulesTreeBE *inn)
        : TreeModel(inn)
      {}

      inline ::bec::ModulesTreeBE *get_unmanaged_object()
      { return static_cast<::bec::ModulesTreeBE *>(inner); }

      //virtual int count_children(const NodeId &parent);
      //virtual NodeId get_child(const NodeId &parent, int index);

      //virtual bool get_field(const NodeId &node, int column, std::string &value);

      //virtual void refresh();
    };


  } // namespace Grt
} // namespace MySQL

#endif // __GRT_MODULES_TREE_H__