From 4d509ffb80df32ba7369a6745e4527735766cb85 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Tue, 27 Aug 2013 23:16:32 -0500 Subject: Rename KWallet to TDEWallet --- kipi-plugins/flickrexport/flickrwindow.h | 4 ++-- kipi-plugins/galleryexport/galleries.cpp | 4 ++-- kipi-plugins/galleryexport/galleries.h | 4 ++-- kipi-plugins/picasawebexport/picasawebwindow.h | 4 ++-- kipi-plugins/sync/sink.cpp | 6 +++--- kipi-plugins/sync/sink.h | 8 ++++---- kipi-plugins/sync/sinkfactory.cpp | 2 +- kipi-plugins/sync/sinkfactory.h | 8 ++++---- kipi-plugins/sync/sinks.cpp | 8 ++++---- kipi-plugins/sync/sinks.h | 4 ++-- kipi-plugins/sync/sinks/gallery/gallerysink.cpp | 4 ++-- kipi-plugins/sync/sinks/gallery/gallerysink.h | 4 ++-- 12 files changed, 30 insertions(+), 30 deletions(-) diff --git a/kipi-plugins/flickrexport/flickrwindow.h b/kipi-plugins/flickrexport/flickrwindow.h index 509eca5..77c458b 100644 --- a/kipi-plugins/flickrexport/flickrwindow.h +++ b/kipi-plugins/flickrexport/flickrwindow.h @@ -57,7 +57,7 @@ namespace KIPI class Interface; } -namespace KWallet +namespace TDEWallet { class Wallet; } @@ -148,7 +148,7 @@ private: TQValueList< TQPair > m_uploadQueue; -// KWallet::Wallet *m_wallet; +// TDEWallet::Wallet *m_wallet; TDEHTMLPart *m_photoView; KLineEdit *m_tagsLineEdit; diff --git a/kipi-plugins/galleryexport/galleries.cpp b/kipi-plugins/galleryexport/galleries.cpp index fd21da2..462167d 100644 --- a/kipi-plugins/galleryexport/galleries.cpp +++ b/kipi-plugins/galleryexport/galleries.cpp @@ -118,9 +118,9 @@ void Galleries::Load() bool bln_use_wallet = false; #if KDE_IS_VERSION(3,2,0) - mpWallet = KWallet::Wallet::openWallet(KWallet::Wallet::NetworkWallet(), + mpWallet = TDEWallet::Wallet::openWallet(TDEWallet::Wallet::NetworkWallet(), kapp->activeWindow()->winId(), - KWallet::Wallet::Synchronous); + TDEWallet::Wallet::Synchronous); if (!mpWallet) { kdWarning() << "Failed to open tdewallet" << endl; diff --git a/kipi-plugins/galleryexport/galleries.h b/kipi-plugins/galleryexport/galleries.h index 009db38..e129d3c 100644 --- a/kipi-plugins/galleryexport/galleries.h +++ b/kipi-plugins/galleryexport/galleries.h @@ -22,7 +22,7 @@ #include #include -namespace KWallet +namespace TDEWallet { class Wallet; } @@ -100,7 +100,7 @@ public: private: void Load(); - KWallet::Wallet* mpWallet; + TDEWallet::Wallet* mpWallet; GalleryPtrList mGalleries; unsigned int mMaxGalleryId; diff --git a/kipi-plugins/picasawebexport/picasawebwindow.h b/kipi-plugins/picasawebexport/picasawebwindow.h index 0157cdd..cf2d796 100644 --- a/kipi-plugins/picasawebexport/picasawebwindow.h +++ b/kipi-plugins/picasawebexport/picasawebwindow.h @@ -59,7 +59,7 @@ namespace KIPI class Interface; } -namespace KWallet +namespace TDEWallet { class Wallet; } @@ -121,7 +121,7 @@ private: TQLabel *m_userNameDisplayLabel; -// KWallet::Wallet *m_wallet; +// TDEWallet::Wallet *m_wallet; TDEHTMLPart *m_photoView; KURL::List *m_urls; diff --git a/kipi-plugins/sync/sink.cpp b/kipi-plugins/sync/sink.cpp index 00f59b8..a3b1fa6 100644 --- a/kipi-plugins/sync/sink.cpp +++ b/kipi-plugins/sync/sink.cpp @@ -23,7 +23,7 @@ namespace KIPISyncPlugin { -Sink::Sink(unsigned int sinkId, TQString name, TDEConfig*, KWallet::Wallet*) +Sink::Sink(unsigned int sinkId, TQString name, TDEConfig*, TDEWallet::Wallet*) : mSinkId(sinkId), mName(name) { @@ -80,7 +80,7 @@ void Sink::asTQListViewItem(TQListView* pParent) */ // Pretend sink (just for testin the structure - will be removed!) -Sink2::Sink2(unsigned int sinkId, TQString name, TDEConfig* pConfig, KWallet::Wallet* pWallet) +Sink2::Sink2(unsigned int sinkId, TQString name, TDEConfig* pConfig, TDEWallet::Wallet* pWallet) : Sink(sinkId, name, pConfig, pWallet) { mName = "Sink2"; @@ -95,7 +95,7 @@ KIPI2::CollectionList* Sink2::getCollections() return (KIPI2::CollectionList*) NULL; } -void Sink2::Save(TDEConfig*, KWallet::Wallet*) +void Sink2::Save(TDEConfig*, TDEWallet::Wallet*) { } diff --git a/kipi-plugins/sync/sink.h b/kipi-plugins/sync/sink.h index 910693c..fd8392b 100644 --- a/kipi-plugins/sync/sink.h +++ b/kipi-plugins/sync/sink.h @@ -41,7 +41,7 @@ namespace KIPISyncPlugin class Sink : public KIPI2::Interface { public: - Sink(unsigned int sinkId, TQString name, TDEConfig* pConfig, KWallet::Wallet* pWallet); + Sink(unsigned int sinkId, TQString name, TDEConfig* pConfig, TDEWallet::Wallet* pWallet); unsigned int SinkId(); @@ -56,7 +56,7 @@ public: virtual const KIPI2::CollectionList* getCollections() = 0; - virtual void Save(TDEConfig* pConfig, KWallet::Wallet* pWallet) = 0; + virtual void Save(TDEConfig* pConfig, TDEWallet::Wallet* pWallet) = 0; // As some Sinks are remote, we have the concept of connect/disconnect virtual bool Connect() { return true; }; @@ -77,11 +77,11 @@ protected: class Sink2 : Sink { public: - Sink2(unsigned int sinkId, TQString name, TDEConfig* pConfig, KWallet::Wallet* pWallet); + Sink2(unsigned int sinkId, TQString name, TDEConfig* pConfig, TDEWallet::Wallet* pWallet); TQString Type(); TQString TypeDescription(); KIPI2::CollectionList* getCollections(); - void Save(TDEConfig* pConfig, KWallet::Wallet* pWallet); + void Save(TDEConfig* pConfig, TDEWallet::Wallet* pWallet); }; diff --git a/kipi-plugins/sync/sinkfactory.cpp b/kipi-plugins/sync/sinkfactory.cpp index fb4c06c..d9fec87 100644 --- a/kipi-plugins/sync/sinkfactory.cpp +++ b/kipi-plugins/sync/sinkfactory.cpp @@ -35,7 +35,7 @@ bool SinkFactory::Register(TQString type, SinkProxy* pSinkProxy) } // The main creation method -Sink* SinkFactory::Create(TQString type, unsigned int sinkId, TQString name, TDEConfig* pConfig, KWallet::Wallet* pWallet) +Sink* SinkFactory::Create(TQString type, unsigned int sinkId, TQString name, TDEConfig* pConfig, TDEWallet::Wallet* pWallet) { if (!mSinkProxies.contains(type)) return NULL; diff --git a/kipi-plugins/sync/sinkfactory.h b/kipi-plugins/sync/sinkfactory.h index e570e78..97dc253 100644 --- a/kipi-plugins/sync/sinkfactory.h +++ b/kipi-plugins/sync/sinkfactory.h @@ -22,7 +22,7 @@ #include class TQListView; class TDEConfig; -namespace KWallet +namespace TDEWallet { class Wallet; } @@ -35,13 +35,13 @@ class Sink; // Create a templated creator function to allow our "sinks" to // register themselves with the factory. template -Sink* SinkCreator(unsigned int sinkId, TQString name, TDEConfig* pConfig, KWallet::Wallet* pWallet) +Sink* SinkCreator(unsigned int sinkId, TQString name, TDEConfig* pConfig, TDEWallet::Wallet* pWallet) { return (Sink*) new T(sinkId, name, pConfig, pWallet); } // Define a type that is a pointer to the templated function above. -typedef Sink* SinkProxy(unsigned int sinkId, TQString name, TDEConfig* pConfig, KWallet::Wallet* pWallet); +typedef Sink* SinkProxy(unsigned int sinkId, TQString name, TDEConfig* pConfig, TDEWallet::Wallet* pWallet); // And define a type that is a Map of names to creator functions. typedef TQMap SinkMap; @@ -51,7 +51,7 @@ class SinkFactory { public: static bool Register(TQString name, SinkProxy* pSinkProxy); - static Sink* Create(TQString name, unsigned int sinkId, TQString name, TDEConfig* pConfig, KWallet::Wallet* pWallet); + static Sink* Create(TQString name, unsigned int sinkId, TQString name, TDEConfig* pConfig, TDEWallet::Wallet* pWallet); private: static SinkMap mSinkProxies; diff --git a/kipi-plugins/sync/sinks.cpp b/kipi-plugins/sync/sinks.cpp index 436c826..a9eaf71 100644 --- a/kipi-plugins/sync/sinks.cpp +++ b/kipi-plugins/sync/sinks.cpp @@ -58,11 +58,11 @@ Sinks::Sinks() : mpWallet(NULL), mMaxSinkId(0) { - KWallet::Wallet* p_wallet = NULL; + TDEWallet::Wallet* p_wallet = NULL; #if KDE_IS_VERSION(3,2,0) - mpWallet = KWallet::Wallet::openWallet(KWallet::Wallet::NetworkWallet(), + mpWallet = TDEWallet::Wallet::openWallet(TDEWallet::Wallet::NetworkWallet(), kapp->activeWindow()->winId(), - KWallet::Wallet::Synchronous); + TDEWallet::Wallet::Synchronous); if (!mpWallet) { kdWarning() << "Failed to open tdewallet" << endl; @@ -149,7 +149,7 @@ void Sinks::Save() config.deleteGroup("Sync Sinks"); config.setGroup("Sync Sinks"); - KWallet::Wallet* p_wallet = NULL; + TDEWallet::Wallet* p_wallet = NULL; if (mpWallet) { if (mpWallet->hasFolder("KIPISyncPlugin")) diff --git a/kipi-plugins/sync/sinks.h b/kipi-plugins/sync/sinks.h index 3636c97..179f24d 100644 --- a/kipi-plugins/sync/sinks.h +++ b/kipi-plugins/sync/sinks.h @@ -24,7 +24,7 @@ // Some sinks may wish to make use of the Wallet to store sensitive // information so we manage it here. -namespace KWallet +namespace TDEWallet { class Wallet; } @@ -69,7 +69,7 @@ public: private: void Load(); - KWallet::Wallet* mpWallet; + TDEWallet::Wallet* mpWallet; SinkPtrList mSinks; unsigned int mMaxSinkId; diff --git a/kipi-plugins/sync/sinks/gallery/gallerysink.cpp b/kipi-plugins/sync/sinks/gallery/gallerysink.cpp index 4802374..2d3b5af 100644 --- a/kipi-plugins/sync/sinks/gallery/gallerysink.cpp +++ b/kipi-plugins/sync/sinks/gallery/gallerysink.cpp @@ -44,7 +44,7 @@ namespace KIPISyncPlugin { -GallerySink::GallerySink(unsigned int sinkId, TQString name, TDEConfig* pConfig, KWallet::Wallet* pWallet, GalleryVersion version) +GallerySink::GallerySink(unsigned int sinkId, TQString name, TDEConfig* pConfig, TDEWallet::Wallet* pWallet, GalleryVersion version) : Sink(sinkId, name, pConfig, pWallet), mVersion(version), mAuthToken(""), @@ -70,7 +70,7 @@ const KIPI2::CollectionList* GallerySink::getCollections() return NULL; } -void GallerySink::Save(TDEConfig* pConfig, KWallet::Wallet* pWallet) +void GallerySink::Save(TDEConfig* pConfig, TDEWallet::Wallet* pWallet) { pConfig->writeEntry(TQString("Name%1").arg(mSinkId), mName); pConfig->writeEntry(TQString("Type%1").arg(mSinkId), Type()); diff --git a/kipi-plugins/sync/sinks/gallery/gallerysink.h b/kipi-plugins/sync/sinks/gallery/gallerysink.h index 096d88d..a0a4376 100644 --- a/kipi-plugins/sync/sinks/gallery/gallerysink.h +++ b/kipi-plugins/sync/sinks/gallery/gallerysink.h @@ -51,12 +51,12 @@ public: GE_ADDPHOTO }; - GallerySink(unsigned int sinkId, TQString name, TDEConfig* pConfig, KWallet::Wallet* pWallet, GalleryVersion version); + GallerySink(unsigned int sinkId, TQString name, TDEConfig* pConfig, TDEWallet::Wallet* pWallet, GalleryVersion version); ~GallerySink(); const KIPI2::CollectionList* getCollections(); - void Save(TDEConfig* pConfig, KWallet::Wallet* pWallet); + void Save(TDEConfig* pConfig, TDEWallet::Wallet* pWallet); bool Connect(); -- cgit v1.2.1