~ubuntu-branches/ubuntu/oneiric/kdepim/oneiric-updates

« back to all changes in this revision

Viewing changes to kontact/plugins/knotes/knotes_plugin.cpp

  • Committer: Package Import Robot
  • Author(s): Philip Muškovac
  • Date: 2011-06-28 19:33:24 UTC
  • mfrom: (0.2.13) (0.1.13 sid)
  • Revision ID: package-import@ubuntu.com-20110628193324-8yvjs8sdv9rdoo6c
Tags: 4:4.7.0-0ubuntu1
* New upstream release
  - update install files
  - add missing kdepim-doc package to control file
  - Fix Vcs lines
  - kontact breaks/replaces korganizer << 4:4.6.80
  - tighten the dependency of kdepim-dev on libkdepim4 to fix lintian error

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
#include "knotes_part.h"
23
23
#include "summarywidget.h"
24
24
 
25
 
#include <libkdepim/kvcarddrag.h>
 
25
#include "kdepim-version.h"
 
26
 
26
27
#include <libkdepim/maillistdrag.h>
27
28
using namespace KPIM;
28
29
 
 
30
#include <KABC/VCardDrag>
29
31
#include <KCal/CalendarLocal>
30
32
#include <KCal/ICalDrag>
31
33
 
105
107
    mAboutData =
106
108
      new KAboutData( "knotes", 0,
107
109
                      ki18nc( "@title", "KNotes" ),
108
 
                      "0.5",
 
110
                      KDEPIM_VERSION,
109
111
                      ki18nc( "@title", "Popup Notes" ),
110
112
                      KAboutData::License_GPL_V2,
111
 
                      ki18nc( "@info:credit", "(c) 2003-2004 The Kontact developers" ) );
 
113
                      ki18nc( "@info:credit", "Copyright © 2003–2010 Kontact authors" ) );
112
114
 
113
115
    mAboutData->addAuthor( ki18nc( "@info:credit", "Michael Brade" ),
114
116
                           ki18nc( "@info:credit", "Current Maintainer" ),
126
128
  return
127
129
    mimeData->hasText() ||
128
130
    MailList::canDecode( mimeData ) ||
129
 
    KVCardDrag::canDecode( mimeData ) ||
 
131
    KABC::VCardDrag::canDecode( mimeData ) ||
130
132
    ICalDrag::canDecode( mimeData );
131
133
}
132
134
 
134
136
{
135
137
  const QMimeData *md = event->mimeData();
136
138
 
137
 
  if ( KVCardDrag::canDecode( md ) ) {
 
139
  if ( KABC::VCardDrag::canDecode( md ) ) {
138
140
    KABC::Addressee::List contacts;
139
141
 
140
 
    KVCardDrag::fromMimeData( md, contacts );
 
142
    KABC::VCardDrag::fromMimeData( md, contacts );
141
143
 
142
144
    KABC::Addressee::List::ConstIterator it;
143
145
 
208
210
 
209
211
void KNotesPlugin::slotSyncNotes()
210
212
{
 
213
#if 0
211
214
  QDBusMessage message = QDBusMessage::createMethodCall(
212
215
    "org.kde.kmail", "/Groupware", "org.kde.kmail.groupware", "triggerSync" );
213
216
  message << QString( "Note" );
214
217
  QDBusConnection::sessionBus().send( message );
 
218
#else
 
219
  kWarning()<<" Need to port to AKONADI: KNotesPlugin::slotSyncNotes";
 
220
#endif
215
221
}
216
222
 
217
223
#include "knotes_plugin.moc"