Skip to content

Commit

Permalink
build: KEYCHAIN_DBUS
Browse files Browse the repository at this point in the history
  • Loading branch information
mmuman authored and frankosterfeld committed Jan 23, 2020
1 parent b16b442 commit cbc626e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@ if(UNIX AND NOT APPLE AND NOT ANDROID)
list(APPEND qtkeychain_LIBRARIES ${LIBSECRET_LIBRARIES})
endif()

add_definitions(-DKEYCHAIN_DBUS=1)
list(APPEND qtkeychain_SOURCES keychain_unix.cpp gnomekeyring.cpp libsecret.cpp plaintextstore.cpp)
qt_add_dbus_interface(qtkeychain_SOURCES ${CMAKE_CURRENT_SOURCE_DIR}/org.kde.KWallet.xml kwallet_interface KWalletInterface)
list(APPEND qtkeychain_LIBRARIES ${QTDBUS_LIBRARIES} )
Expand Down
10 changes: 5 additions & 5 deletions keychain_p.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
#include <QSettings>
#include <QQueue>

#if defined(Q_OS_UNIX) && !defined(Q_OS_DARWIN) && !defined(Q_OS_ANDROID)
#if defined(KEYCHAIN_DBUS)

#include <QDBusPendingCallWatcher>

Expand Down Expand Up @@ -49,7 +49,7 @@ class JobPrivate : public QObject {
Mode mode;
QByteArray data;

#if defined(Q_OS_UNIX) && !defined(Q_OS_DARWIN) && !defined(Q_OS_ANDROID)
#if defined(KEYCHAIN_DBUS)
org::kde::KWallet* iface;
int walletHandle;

Expand Down Expand Up @@ -93,7 +93,7 @@ class ReadPasswordJobPrivate : public JobPrivate {
explicit ReadPasswordJobPrivate( const QString &service_, ReadPasswordJob* qq );
void scheduledStart();

#if defined(Q_OS_UNIX) && !defined(Q_OS_DARWIN) && !defined(Q_OS_ANDROID)
#if defined(KEYCHAIN_DBUS)
void fallbackOnError(const QDBusError& err);

private Q_SLOTS:
Expand All @@ -116,7 +116,7 @@ class WritePasswordJobPrivate : public JobPrivate {
explicit WritePasswordJobPrivate( const QString &service_, WritePasswordJob* qq );
void scheduledStart();

#if defined(Q_OS_UNIX) && !defined(Q_OS_DARWIN) && !defined(Q_OS_ANDROID)
#if defined(KEYCHAIN_DBUS)
void fallbackOnError(const QDBusError& err);
#endif

Expand All @@ -130,7 +130,7 @@ class DeletePasswordJobPrivate : public JobPrivate {

void scheduledStart();

#if defined(Q_OS_UNIX) && !defined(Q_OS_DARWIN) && !defined(Q_OS_ANDROID)
#if defined(KEYCHAIN_DBUS)
void fallbackOnError(const QDBusError& err);
#endif

Expand Down

0 comments on commit cbc626e

Please sign in to comment.