~ubuntu-branches/ubuntu/trusty/kopete/trusty

« back to all changes in this revision

Viewing changes to plugins/webpresence/webpresenceplugin.cpp

  • Committer: Package Import Robot
  • Author(s): Rohan Garg
  • Date: 2013-11-23 17:46:40 UTC
  • mfrom: (1.1.7)
  • Revision ID: package-import@ubuntu.com-20131123174640-gz1zjv1xqh81bi2h
Tags: 4:4.11.80-0ubuntu1
* New upstream beta release
* Bump build dependency to libotr5-dev
* Update symbols
* Update install files
* Drop new_linphone.diff, not required anymore

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
 *************************************************************************
19
19
 */
20
20
 
21
 
#include <config-kopete.h> // for HAVE_XSLT
22
 
 
23
21
#include "webpresenceplugin.h"
24
22
 
25
23
#include <QtCore/QTimer>
37
35
#include <ktemporaryfile.h>
38
36
#include <kstandarddirs.h>
39
37
 
40
 
#ifdef HAVE_XSLT
41
38
#include <libxml/parser.h>
42
39
#include <libxml/tree.h>
43
40
 
45
42
#include <libxslt/xsltInternals.h>
46
43
#include <libxslt/transform.h>
47
44
#include <libxslt/xsltutils.h>
48
 
#endif
49
45
 
50
46
#include "kopetepluginmanager.h"
51
47
#include "kopeteprotocol.h"
261
257
                        acc.appendChild( protoName );
262
258
 
263
259
                        Kopete::Contact* me = account->myself();
264
 
                        QString displayName = me->property( Kopete::Global::Properties::self()->nickName() ).value().toString();
 
260
                        QString displayName = me->nickName();
265
261
                        QDomElement accName = doc.createElement( "accountname" );
266
262
                        QDomText accNameText = doc.createTextNode( ( me )
267
263
                                        ? displayName
322
318
 
323
319
bool WebPresencePlugin::transform( KTemporaryFile * src, KTemporaryFile * dest )
324
320
{
325
 
#ifdef HAVE_XSLT
326
321
        bool retval = true;
327
322
        xmlSubstituteEntitiesDefault( 1 );
328
323
        xmlLoadExtDtdDefaultValue = 1;
405
400
        if (cur) xsltFreeStylesheet(cur);
406
401
 
407
402
        return retval;
408
 
 
409
 
#else
410
 
        Q_UNUSED( src );
411
 
        Q_UNUSED( dest );
412
 
 
413
 
        return false;
414
 
#endif
415
403
}
416
404
 
417
405
ProtocolList WebPresencePlugin::allProtocols()