| 1 |
////////////////////////////////////////////////////////////////////////////// |
| 2 |
////////////////////////////////////////////////////////////////////////////// |
| 3 |
// |
| 4 |
// copyright : (C) 2014 Eran Ifrah |
| 5 |
// file name : IDbItem.h |
| 6 |
// |
| 7 |
// ------------------------------------------------------------------------- |
| 8 |
// A |
| 9 |
// _____ _ _ _ _ |
| 10 |
// / __ \ | | | | (_) | |
| 11 |
// | / \/ ___ __| | ___| | _| |_ ___ |
| 12 |
// | | / _ \ / _ |/ _ \ | | | __/ _ ) |
| 13 |
// | \__/\ (_) | (_| | __/ |___| | || __/ |
| 14 |
// \____/\___/ \__,_|\___\_____/_|\__\___| |
| 15 |
// |
| 16 |
// F i l e |
| 17 |
// |
| 18 |
// This program is free software; you can redistribute it and/or modify |
| 19 |
// it under the terms of the GNU General Public License as published by |
| 20 |
// the Free Software Foundation; either version 2 of the License, or |
| 21 |
// (at your option) any later version. |
| 22 |
// |
| 23 |
////////////////////////////////////////////////////////////////////////////// |
| 24 |
////////////////////////////////////////////////////////////////////////////// |
| 25 |
|
| 26 |
#ifndef IDBITEM_H |
| 27 |
#define IDBITEM_H |
| 28 |
|
| 29 |
#include <wx/treebase.h> // Base class: wxTreeItemData |
| 30 |
|
| 31 |
|
| 32 |
enum DbItemType { |
| 33 |
DbDatabaseType, |
| 34 |
DbTableType, |
| 35 |
DbStoredProcedureType, |
| 36 |
DbViewType, |
| 37 |
DbColumnType |
| 38 |
}; |
| 39 |
|
| 40 |
|
| 41 |
class IDbItem : public wxTreeItemData { |
| 42 |
|
| 43 |
public: |
| 44 |
virtual wxString GetName() = 0; |
| 45 |
virtual void SetName(wxString& name) = 0; |
| 46 |
|
| 47 |
virtual DbItemType GetType() = 0; |
| 48 |
|
| 49 |
virtual wxString GetParentName() = 0; |
| 50 |
virtual void SetParentName(wxString& databaseName) = 0; |
| 51 |
|
| 52 |
|
| 53 |
}; |
| 54 |
|
| 55 |
#endif // IDBITEM_H |