Rename KShared

pull/1/head
Timothy Pearson 12 years ago
parent 77018e9b07
commit 7f8c2db2f6

@ -36,10 +36,10 @@ class TQDomDocument;
class TDEProcess;
class KURL;
class KDE_EXPORT Article : public XMLNewsArticle, public KShared
class KDE_EXPORT Article : public XMLNewsArticle, public TDEShared
{
public:
typedef KSharedPtr<Article> Ptr;
typedef TDESharedPtr<Article> Ptr;
typedef TQValueList<Ptr> List;
Article(NewsSourceBase *, const TQString & = TQString(),
@ -54,11 +54,11 @@ class KDE_EXPORT Article : public XMLNewsArticle, public KShared
void open();
private:
NewsSourceBase *m_parent; // don't use KSharedPtr to avoid circular refs!
NewsSourceBase *m_parent; // don't use TDESharedPtr to avoid circular refs!
bool m_read;
};
class KDE_EXPORT NewsSourceBase : public XMLNewsSource, public KShared
class KDE_EXPORT NewsSourceBase : public XMLNewsSource, public TDEShared
{
Q_OBJECT
@ -96,7 +96,7 @@ class KDE_EXPORT NewsSourceBase : public XMLNewsSource, public KShared
bool isProgram;
TQString language;
};
typedef KSharedPtr<NewsSourceBase> Ptr;
typedef TDESharedPtr<NewsSourceBase> Ptr;
typedef TQValueList<Ptr> List;
NewsSourceBase(const Data &, ConfigIface *);

@ -43,7 +43,7 @@
using namespace Kopete;
class Message::Private
: public KShared
: public TDEShared
{
public:
Private( const TQDateTime &timeStamp, const Contact *from, const ContactPtrList &to,
@ -145,7 +145,7 @@ Message::~Message()
void Message::detach()
{
// there is no detach in KSharedPtr :(
// there is no detach in TDESharedPtr :(
if( d.count() == 1 )
return;

@ -411,7 +411,7 @@ private:
void doSetBody( const TQString &body, MessageFormat format = PlainText );
class Private;
KSharedPtr<Private> d;
TDESharedPtr<Private> d;
static TQString parseLinks( const TQString &message, MessageFormat format );
};

@ -41,13 +41,13 @@ class ProcessMessageTask;
*
* @author Richard Smith <kde@metafoo.co.uk>
*/
class MessageHandlerChain : public TQObject, private KShared
class MessageHandlerChain : public TQObject, private TDEShared
{
Q_OBJECT
public:
friend class KSharedPtr<MessageHandlerChain>;
typedef KSharedPtr<MessageHandlerChain> Ptr;
friend class TDESharedPtr<MessageHandlerChain>;
typedef TDESharedPtr<MessageHandlerChain> Ptr;
/**
* Create a new MessageHandlerChain object with the appropriate handlers for

@ -36,7 +36,7 @@
using namespace Kopete;
class OnlineStatus::Private
: public KShared
: public TDEShared
{
public:
StatusType status;

@ -401,7 +401,7 @@ public:
private:
class Private;
KSharedPtr<Private> d;
TDESharedPtr<Private> d;
TQString mimeSource( const TQString& icon, int size, TQColor color, bool idle) const;

@ -27,7 +27,7 @@
namespace Kopete
{
class Picture::Private : public KShared
class Picture::Private : public TDEShared
{
public:
Private()
@ -186,7 +186,7 @@ void Picture::setPicture(const KABC::Picture &picture)
void Picture::detach()
{
// there is no detach in KSharedPtr.
// there is no detach in TDESharedPtr.
if( d.count() == 1 )
return;

@ -141,7 +141,7 @@ private:
void detach();
class Private;
KSharedPtr<Private> d;
TDESharedPtr<Private> d;
};
}//END namespace Kopete

@ -34,7 +34,7 @@ class Engine;
class Entity
: public TQObject,
public KShared
public TDEShared
{
Q_OBJECT
@ -95,15 +95,15 @@ private:
};
class EntityPtr
: public KSharedPtr<KIRC::Entity>
: public TDESharedPtr<KIRC::Entity>
{
public:
EntityPtr(KIRC::Entity *entity = 0)
: KSharedPtr<KIRC::Entity>(entity)
: TDESharedPtr<KIRC::Entity>(entity)
{ }
EntityPtr(const KIRC::EntityPtr &entity)
: KSharedPtr<KIRC::Entity>(entity)
: TDESharedPtr<KIRC::Entity>(entity)
{ }
};

@ -32,11 +32,11 @@ class TQIODevice;
* check error status that way.
*
* @author Michael Pyne <mpyne@grammarian.homelinux.net>
* @see BInt, BList, BDict, BString, KSharedPtr
* @see BInt, BList, BDict, BString, TDESharedPtr
*/
// Derive from KShared to enable use of KSharedPtr.
class BBase : public KShared
// Derive from TDEShared to enable use of TDESharedPtr.
class BBase : public TDEShared
{
public:

@ -57,7 +57,7 @@ void BDict::init (ByteTape &tape)
BBase *temp_item = 0;
// Read in string
KSharedPtr<BString> str (new BString (tape));
TDESharedPtr<BString> str (new BString (tape));
// Ensure str will be automatically deleted
if (!str || !str->isValid())

@ -23,7 +23,7 @@
#include <tqcstring.h>
class ByteTapeShared : public KShared
class ByteTapeShared : public TDEShared
{
public:
@ -186,7 +186,7 @@ class ByteTape
private:
TQByteArray &m_array;
KSharedPtr<ByteTapeShared> m_shared;
TDESharedPtr<ByteTapeShared> m_shared;
};
#endif /* _BYTETAPE_H */

Loading…
Cancel
Save