Rename KShared

pull/1/head
Timothy Pearson 12 years ago
parent 5dd05113d8
commit 697178524e

@ -25,7 +25,7 @@
ChannelNick::ChannelNick(const NickInfoPtr& nickInfo, const bool& isop, const bool& isadmin,
const bool& isowner, const bool& ishalfop, const bool& hasvoice)
: KShared()
: TDEShared()
{
this->nickInfo = nickInfo;
this->isop = isop;

@ -20,7 +20,7 @@
#include <ksharedptr.h>
class ChannelNick : public TQObject, public KShared
class ChannelNick : public TQObject, public TDEShared
{
Q_OBJECT
@ -77,10 +77,10 @@ class ChannelNick : public TQObject, public KShared
void lessActive();
};
/** A ChannelNickPtr is a pointer to a ChannelNick. Since it is a KSharedPtr,
/** A ChannelNickPtr is a pointer to a ChannelNick. Since it is a TDESharedPtr,
* the ChannelNick object is automatically destroyed when all references are destroyed.
*/
typedef KSharedPtr<ChannelNick> ChannelNickPtr;
typedef TDESharedPtr<ChannelNick> ChannelNickPtr;
/** A ChannelNickMap is a list of ChannelNick pointers, indexed and sorted by
* lowercase nickname.

@ -23,7 +23,7 @@
int Identity::s_availableId = 0;
Identity::Identity() : KShared()
Identity::Identity() : TDEShared()
{
m_id = s_availableId;
s_availableId++;
@ -31,7 +31,7 @@ Identity::Identity() : KShared()
init();
}
Identity::Identity(int id) : KShared()
Identity::Identity(int id) : TDEShared()
{
if (id < 0)
{
@ -46,7 +46,7 @@ Identity::Identity(int id) : KShared()
init();
}
Identity::Identity(const Identity& original) : KShared()
Identity::Identity(const Identity& original) : TDEShared()
{
copy(original);
m_id = original.id();

@ -21,7 +21,7 @@
class TQTextCodec;
class Identity : public KShared
class Identity : public TDEShared
{
public:
/// Create an Identity with a new id.
@ -127,7 +127,7 @@ class Identity : public KShared
void init();
};
typedef KSharedPtr<Identity> IdentityPtr;
typedef TDESharedPtr<Identity> IdentityPtr;
typedef TQValueList<IdentityPtr> IdentityList;
#endif

@ -31,7 +31,7 @@
#include <klocale.h>
NickInfo::NickInfo(const TQString& nick, Server* server): KShared()
NickInfo::NickInfo(const TQString& nick, Server* server): TDEShared()
{
m_addressee=Konversation::Addressbook::self()->getKABCAddresseeFromNick(nick, server->getServerName(), server->getDisplayName());
m_nickname = nick;

@ -33,7 +33,7 @@ class TQTimer;
Offline (but watched or in addressbook) nicks are stored in the Server object.
*/
class NickInfo : public TQObject, public KShared
class NickInfo : public TQObject, public TDEShared
{
Q_OBJECT
@ -174,10 +174,10 @@ class NickInfo : public TQObject, public KShared
void nickInfoChanged(void);
};
/** A NickInfoPtr is a pointer to a NickInfo object. Since it is a KSharedPtr, the NickInfo
/** A NickInfoPtr is a pointer to a NickInfo object. Since it is a TDESharedPtr, the NickInfo
* object is automatically destroyed when all references are destroyed.
*/
typedef KSharedPtr<NickInfo> NickInfoPtr;
typedef TDESharedPtr<NickInfo> NickInfoPtr;
/** A NickInfoMap is a list of NickInfo objects, indexed and sorted by lowercase nickname.
*/
typedef TQMap<TQString,NickInfoPtr> NickInfoMap;

@ -213,7 +213,7 @@ void resetNickSelection();
* - It is on the notify list and is known to be online.
* - The nick initiated a query with the user.
*
* @return A TQMap of KSharedPtrs to NickInfos indexed by lowercase nickname.
* @return A TQMap of TDESharedPtrs to NickInfos indexed by lowercase nickname.
*/
const NickInfoMap* getAllNicks();
/** Returns the list of members for a channel in the joinedChannels list.

@ -20,7 +20,7 @@ namespace Konversation
int ServerGroupSettings::s_availableId = 0;
ServerGroupSettings::ServerGroupSettings()
: KShared()
: TDEShared()
{
m_id = s_availableId;
s_availableId++;
@ -31,7 +31,7 @@ namespace Konversation
}
ServerGroupSettings::ServerGroupSettings(int id)
: KShared()
: TDEShared()
{
if(id < 0)
{
@ -50,7 +50,7 @@ namespace Konversation
}
ServerGroupSettings::ServerGroupSettings(const ServerGroupSettings& settings)
: KShared()
: TDEShared()
{
setName(settings.name());
setServerList(settings.serverList());
@ -64,7 +64,7 @@ namespace Konversation
}
ServerGroupSettings::ServerGroupSettings(const TQString& name)
: KShared()
: TDEShared()
{
setName(name);
m_id = s_availableId;

@ -54,12 +54,12 @@ namespace Konversation
};
class ServerGroupSettings;
typedef KSharedPtr<ServerGroupSettings> ServerGroupSettingsPtr;
typedef TDESharedPtr<ServerGroupSettings> ServerGroupSettingsPtr;
typedef TQValueList<ServerGroupSettingsPtr> ServerGroupList;
typedef TQValueList<ServerSettings> ServerList;
typedef TQValueList<ChannelSettings> ChannelList;
class ServerGroupSettings : public KShared
class ServerGroupSettings : public TDEShared
{
public:
ServerGroupSettings();

Loading…
Cancel
Save