diff options
| author | isanae <14251494+isanae@users.noreply.github.com> | 2019-12-19 23:40:43 -0500 |
|---|---|---|
| committer | isanae <14251494+isanae@users.noreply.github.com> | 2020-02-04 03:33:19 -0500 |
| commit | ee03c232907a0c340715ed8390d432cf27e13b27 (patch) | |
| tree | a689b10193f4b056c1d32b1c124bf11823370202 /src/shared/directoryentry.h | |
| parent | 1c07f8ddda94254ab4f0e985ffb3e5fdea2da921 (diff) | |
refactoring: moved member functions in the same order as the header
Diffstat (limited to 'src/shared/directoryentry.h')
| -rw-r--r-- | src/shared/directoryentry.h | 31 |
1 files changed, 22 insertions, 9 deletions
diff --git a/src/shared/directoryentry.h b/src/shared/directoryentry.h index bd72c208..98366493 100644 --- a/src/shared/directoryentry.h +++ b/src/shared/directoryentry.h @@ -69,20 +69,29 @@ public: FileEntry(Index index, const std::wstring &name, DirectoryEntry *parent);
~FileEntry();
- Index getIndex() const { return m_Index; }
+ Index getIndex() const
+ {
+ return m_Index;
+ }
- time_t lastAccessed() const { return m_LastAccessed; }
+ time_t lastAccessed() const
+ {
+ return m_LastAccessed;
+ }
- void addOrigin(int origin, FILETIME fileTime, const std::wstring &archive, int order);
+ void addOrigin(
+ int origin, FILETIME fileTime, const std::wstring &archive, int order);
- // remove the specified origin from the list of origins that contain this file. if no origin is left,
- // the file is effectively deleted and true is returned. otherwise, false is returned
+ // remove the specified origin from the list of origins that contain this
+ // file. if no origin is left, the file is effectively deleted and true is
+ // returned. otherwise, false is returned
bool removeOrigin(int origin);
void sortOrigins();
- // gets the list of alternative origins (origins with lower priority than the primary one).
- // if sortOrigins has been called, it is sorted by priority (ascending)
+ // gets the list of alternative origins (origins with lower priority than
+ // the primary one). if sortOrigins has been called, it is sorted by priority
+ // (ascending)
const AlternativesVector &getAlternatives() const
{
return m_Alternatives;
@@ -320,7 +329,10 @@ public: void propagateOrigin(int origin);
- const std::wstring &getName() const;
+ const std::wstring &getName() const
+ {
+ return m_Name;
+ }
boost::shared_ptr<FileRegister> getFileRegister()
{
@@ -400,7 +412,8 @@ public: // if directory is not nullptr, the referenced variable will be set to the
// path containing the file
//
- const FileEntry::Ptr searchFile(const std::wstring &path, const DirectoryEntry **directory) const;
+ const FileEntry::Ptr searchFile(
+ const std::wstring &path, const DirectoryEntry **directory) const;
void insertFile(const std::wstring &filePath, FilesOrigin &origin, FILETIME fileTime);
|
