diff options
author | Emanoil Kotsev <deloptes@gmail.com> | 2020-02-29 18:39:20 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2020-02-29 18:39:20 +0900 |
commit | 094f8d9a878ff83db4e3bdd5ca2bcb273f96c7ea (patch) | |
tree | 16d3fab3f49d54c78019802c505df10a697157da /knotes/knotesapp.cpp | |
parent | 0087f22b7304e93164515e04ade0a24f2538e40e (diff) | |
download | tdepim-094f8d9a878ff83db4e3bdd5ca2bcb273f96c7ea.tar.gz tdepim-094f8d9a878ff83db4e3bdd5ca2bcb273f96c7ea.zip |
Extended the interface of KNotes with getLastModified method. This
relates to bug 2691.
Signed-off-by: Emanoil Kotsev <deloptes@gmail.com>
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'knotes/knotesapp.cpp')
-rw-r--r-- | knotes/knotesapp.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/knotes/knotesapp.cpp b/knotes/knotesapp.cpp index 5cc2635c2..2a4e84b17 100644 --- a/knotes/knotesapp.cpp +++ b/knotes/knotesapp.cpp @@ -342,6 +342,15 @@ TQMap<TQString,TQString> KNotesApp::notes() const return notes; } +TQDateTime KNotesApp::getLastModified( const TQString& id ) const +{ + KNote* note = m_noteList[id]; + TQDateTime d; + if ( note ) + d = note->getLastModified(); + return d; +} + TQString KNotesApp::name( const TQString& id ) const { KNote* note = m_noteList[id]; |