summaryrefslogtreecommitdiffstats
path: root/kopete/libkopete/managedconnectionaccount.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-15 15:49:40 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-15 15:49:40 -0600
commit808e453c56036211f57482ed847d54aca01bba68 (patch)
tree75515d5768dea10d4fbe4cd772e0a89c1c4b3aa9 /kopete/libkopete/managedconnectionaccount.cpp
parentcd9b9ed7fd0ac8a75106148254aa58e2e5c04863 (diff)
downloadtdenetwork-808e453c56036211f57482ed847d54aca01bba68.tar.gz
tdenetwork-808e453c56036211f57482ed847d54aca01bba68.zip
Rename a number of old tq methods that are no longer tq specific
Diffstat (limited to 'kopete/libkopete/managedconnectionaccount.cpp')
-rw-r--r--kopete/libkopete/managedconnectionaccount.cpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/kopete/libkopete/managedconnectionaccount.cpp b/kopete/libkopete/managedconnectionaccount.cpp
index c7ca976e..7d2d02f6 100644
--- a/kopete/libkopete/managedconnectionaccount.cpp
+++ b/kopete/libkopete/managedconnectionaccount.cpp
@@ -27,45 +27,45 @@ namespace Kopete
ManagedConnectionAccount::ManagedConnectionAccount( Protocol *parent, const TQString &acctId, uint maxPasswordLength, const char *name )
: PasswordedAccount( parent, acctId, maxPasswordLength, name ), m_waitingForConnection( false )
{
- TQObject::connect( ConnectionManager::self(), TQT_SIGNAL(statusChanged(const TQString&, NetworktqStatus::EnumtqStatus ) ),
- TQT_SLOT(slotConnectionStatusChanged(const TQString&, NetworktqStatus::EnumtqStatus ) ) );
+ TQObject::connect( ConnectionManager::self(), TQT_SIGNAL(statusChanged(const TQString&, NetworkStatus::EnumStatus ) ),
+ TQT_SLOT(slotConnectionStatusChanged(const TQString&, NetworkStatus::EnumStatus ) ) );
}
void ManagedConnectionAccount::connectWithPassword( const TQString &password )
{
m_password = password;
- NetworktqStatus::EnumtqStatus status = ConnectionManager::self()->status( TQString() );
- if ( status == NetworktqStatus::NoNetworks )
+ NetworkStatus::EnumStatus status = ConnectionManager::self()->status( TQString() );
+ if ( status == NetworkStatus::NoNetworks )
performConnectWithPassword( password );
else
{
m_waitingForConnection = true;
// need to adapt libkopete so we know the hostname in this class and whether the connection was user initiated
// for now, these are the default parameters to always bring up a connection to "the internet".
- NetworktqStatus::EnumRequestResult response = ConnectionManager::self()->requestConnection( Kopete::UI::Global::mainWidget(), TQString(), true );
- if ( response == NetworktqStatus::Connected )
+ NetworkStatus::EnumRequestResult response = ConnectionManager::self()->requestConnection( Kopete::UI::Global::mainWidget(), TQString(), true );
+ if ( response == NetworkStatus::Connected )
{
m_waitingForConnection = false;
performConnectWithPassword( password );
}
- else if ( response == NetworktqStatus::UserRefused || response == NetworktqStatus::Unavailable )
+ else if ( response == NetworkStatus::UserRefused || response == NetworkStatus::Unavailable )
disconnect();
}
}
-void ManagedConnectionAccount::slotConnectionStatusChanged( const TQString & host, NetworktqStatus::EnumtqStatus status )
+void ManagedConnectionAccount::slotConnectionStatusChanged( const TQString & host, NetworkStatus::EnumStatus status )
{
Q_UNUSED(host); // as above, we didn't register a hostname, so treat any connection as our own.
- if ( m_waitingForConnection && ( status == NetworktqStatus::Online || status == NetworktqStatus::NoNetworks ) )
+ if ( m_waitingForConnection && ( status == NetworkStatus::Online || status == NetworkStatus::NoNetworks ) )
{
m_waitingForConnection = false;
performConnectWithPassword( m_password );
}
- else if ( isConnected() && ( status == NetworktqStatus::Offline
- || status == NetworktqStatus::ShuttingDown
- || status == NetworktqStatus::OfflineDisconnected
- || status == NetworktqStatus::OfflineFailed ) )
+ else if ( isConnected() && ( status == NetworkStatus::Offline
+ || status == NetworkStatus::ShuttingDown
+ || status == NetworkStatus::OfflineDisconnected
+ || status == NetworkStatus::OfflineFailed ) )
disconnect();
}