Emergency 20 Dokumentation  4.2.0
AccountStatusTitleDataSource.h
Go to the documentation of this file.
1 // Copyright (C) 2012-2018 Promotion Software GmbH
2 
3 
4 //[-------------------------------------------------------]
5 //[ Header guard ]
6 //[-------------------------------------------------------]
7 #pragma once
8 
9 
10 //[-------------------------------------------------------]
11 //[ Includes ]
12 //[-------------------------------------------------------]
13 #include <Rocket/Core/Element.h>
14 #include <Rocket/Controls/DataSource.h>
15 
16 
17 //[-------------------------------------------------------]
18 //[ Namespace ]
19 //[-------------------------------------------------------]
20 namespace em5
21 {
22 
23 
24  //[-------------------------------------------------------]
25  //[ Classes ]
26  //[-------------------------------------------------------]
31  class AccountStatusTitleDataSource : public Rocket::Controls::DataSource
32  {
33 
34 
35  //[-------------------------------------------------------]
36  //[ Public methods ]
37  //[-------------------------------------------------------]
38  public:
41 
42  void setup();
43 
44 
45  //[-------------------------------------------------------]
46  //[ Public virtual Rocket::Controls::DataSource methods ]
47  //[-------------------------------------------------------]
48  public:
49  virtual void GetRow(Rocket::Core::StringList& row, const Rocket::Core::String& table, int rowIndex, const Rocket::Core::StringList& columns) override;
50  virtual int GetNumRows(const Rocket::Core::String& table) override;
51 
52 
53  //[-------------------------------------------------------]
54  //[ Private definitions ]
55  //[-------------------------------------------------------]
56  private:
57  struct TableData
58  {
61  Rocket::Core::String locked;
62  };
63 
64 
65  //[-------------------------------------------------------]
66  //[ Private data ]
67  //[-------------------------------------------------------]
68  private:
69  std::vector<TableData*> mTableData;
70 
71 
72  };
73 
74 
75 //[-------------------------------------------------------]
76 //[ Namespace ]
77 //[-------------------------------------------------------]
78 } // em5
Definition: ActionPriority.h:13
virtual int GetNumRows(const Rocket::Core::String &table) override
Account status title data source.
Definition: AccountStatusTitleDataSource.h:31
virtual void GetRow(Rocket::Core::StringList &row, const Rocket::Core::String &table, int rowIndex, const Rocket::Core::StringList &columns) override
Definition: MiniMapWindow.h:43