Debian Codegraph @

CodeLite/fileentry.h

raw
1 //////////////////////////////////////////////////////////////////////////////
2 //////////////////////////////////////////////////////////////////////////////
3 //
4 // copyright : (C) 2009 by Eran Ifrah
5 // file name : fileentry.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 __fileentry__
27 #define __fileentry__
28
29 #include <wx/string.h>
30 #include "smart_ptr.h"
31 class FileEntry
32 {
33 long m_id;
34 wxString m_file;
35 int m_lastRetaggedTimestamp;
36
37 public:
38 FileEntry();
39 ~FileEntry();
40
41 public:
42 void SetFile(const wxString& file) {
43 this->m_file = file;
44 }
45 void SetLastRetaggedTimestamp(const int& lastRetaggedTimestamp) {
46 this->m_lastRetaggedTimestamp = lastRetaggedTimestamp;
47 }
48 const wxString& GetFile() const {
49 return m_file;
50 }
51 const int& GetLastRetaggedTimestamp() const {
52 return m_lastRetaggedTimestamp;
53 }
54 void SetId(const long& id) {
55 this->m_id = id;
56 }
57 const long& GetId() const {
58 return m_id;
59 }
60 };
61 typedef SmartPtr<FileEntry> FileEntryPtr;
62
63 #endif // __fileentry__