~ubuntu-branches/ubuntu/vivid/kdepim/vivid

« back to all changes in this revision

Viewing changes to libksieve/kmanagesieve/sasl-common.h

  • Committer: Package Import Robot
  • Author(s): Scott Kitterman, Jonathan Riddell, Rohan Garg, Scott Kitterman
  • Date: 2012-11-21 13:12:36 UTC
  • mfrom: (0.2.33)
  • Revision ID: package-import@ubuntu.com-20121121131236-32ijw9a2txrar80k
Tags: 4:4.9.80-0ubuntu1
[ Jonathan Riddell ]
* New upstream beta release

[ Rohan Garg ]
* Add nepomuk-core-dev to build-deps

[ Scott Kitterman ]
* Add new package, libpimcommon4
  - Add libpimcommon4.install
  - Add to debian/control, including kdepim-dbg and kdepim-dev depends
  - Add to kdepim-dev.install
* Remove usr/bin/backupmail and related files from kmail.install as they are
  not provided by upstream anymore
* Add usr/bin/pimsettingexporter and related files to kmail.install
* Add libnepomukwidgets-dev to build-depends

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
    Boston, MA 02110-1301, USA.
18
18
*/
19
19
 
20
 
#ifndef _KIOSLAVE_COMMON_H
21
 
#define _KIOSLAVE_COMMON_H
 
20
//krazy:excludeall=null since used by SASL (C library)
22
21
 
 
22
#ifndef KSIEVE_KMANAGESIEVE_SASL_COMMON_H
 
23
#define KSIEVE_KMANAGESIEVE_SASL_COMMON_H
23
24
 
24
25
#include <stdio.h>
25
26
#include <QFile>
32
33
 
33
34
inline bool initSASL()
34
35
{
35
 
#ifdef Q_OS_WIN32  //krazy:exclude=cpp
 
36
#ifdef Q_OS_WIN32
36
37
  QByteArray libInstallPath( QFile::encodeName(QDir::toNativeSeparators(KGlobal::dirs()->installPath("lib")+QLatin1String("sasl2"))) );
37
38
  QByteArray configPath( QFile::encodeName(QDir::toNativeSeparators(KGlobal::dirs()->installPath("config")+QLatin1String("sasl2"))) );
38
39
  if ( sasl_set_path(SASL_PATH_TYPE_PLUGIN, libInstallPath.data()) != SASL_OK
50
51
  return true;
51
52
}
52
53
 
53
 
 
54
54
#endif