summaryrefslogtreecommitdiffstats
path: root/kontact/plugins/knotes
diff options
context:
space:
mode:
authorEmanoil Kotsev <deloptes@gmail.com>2020-02-29 18:39:20 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2020-02-29 18:39:20 +0900
commit094f8d9a878ff83db4e3bdd5ca2bcb273f96c7ea (patch)
tree16d3fab3f49d54c78019802c505df10a697157da /kontact/plugins/knotes
parent0087f22b7304e93164515e04ade0a24f2538e40e (diff)
downloadtdepim-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 'kontact/plugins/knotes')
-rw-r--r--kontact/plugins/knotes/knotes_part.cpp8
-rw-r--r--kontact/plugins/knotes/knotes_part.h2
-rw-r--r--kontact/plugins/knotes/knotes_plugin.cpp5
3 files changed, 13 insertions, 2 deletions
diff --git a/kontact/plugins/knotes/knotes_part.cpp b/kontact/plugins/knotes/knotes_part.cpp
index 02a4028e2..20e8d6c9e 100644
--- a/kontact/plugins/knotes/knotes_part.cpp
+++ b/kontact/plugins/knotes/knotes_part.cpp
@@ -274,6 +274,14 @@ TQMap<TQString, TQString> KNotesPart::notes() const
return notes;
}
+TQDateTime KNotesPart::getLastModified( const TQString& id ) const
+{
+ KNotesIconViewItem *note = mNoteList[ id ];
+ TQDateTime dt;
+ if ( note )
+ dt = note->journal()->lastModified();
+ return dt;
+}
// private stuff
diff --git a/kontact/plugins/knotes/knotes_part.h b/kontact/plugins/knotes/knotes_part.h
index 023a78b92..67808baef 100644
--- a/kontact/plugins/knotes/knotes_part.h
+++ b/kontact/plugins/knotes/knotes_part.h
@@ -72,6 +72,8 @@ class KNotesPart : public KParts::ReadOnlyPart, virtual public KNotesIface
TQMap<TQString, TQString> notes() const;
+ TQDateTime getLastModified( const TQString& id ) const;
+
private slots:
void createNote( KCal::Journal *journal );
void killNote( KCal::Journal *journal );
diff --git a/kontact/plugins/knotes/knotes_plugin.cpp b/kontact/plugins/knotes/knotes_plugin.cpp
index fceeb65b4..bec6fb5c4 100644
--- a/kontact/plugins/knotes/knotes_plugin.cpp
+++ b/kontact/plugins/knotes/knotes_plugin.cpp
@@ -70,9 +70,10 @@ const TDEAboutData *KNotesPlugin::aboutData()
mAboutData = new TDEAboutData( "knotes", I18N_NOOP( "Notes Management" ),
"0.5", I18N_NOOP( "Notes Management" ),
TDEAboutData::License_GPL_V2,
- "(c) 2003-2004 The Kontact developers" );
- mAboutData->addAuthor( "Michael Brade", "Current Maintainer", "brade@kde.org" );
+ "(c) 2003-2020 The Kontact developers" );
+ mAboutData->addAuthor( "Michael Brade", "", "brade@kde.org" );
mAboutData->addAuthor( "Tobias Koenig", "", "tokoe@kde.org" );
+ mAboutData->addAuthor( "TDE Team", "", "trinitydesktop.org" );
}
return mAboutData;