summaryrefslogtreecommitdiffstats
path: root/kopete/protocols/groupwise/gwmessagemanager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kopete/protocols/groupwise/gwmessagemanager.cpp')
-rw-r--r--kopete/protocols/groupwise/gwmessagemanager.cpp88
1 files changed, 44 insertions, 44 deletions
diff --git a/kopete/protocols/groupwise/gwmessagemanager.cpp b/kopete/protocols/groupwise/gwmessagemanager.cpp
index d9467dfd..7a792486 100644
--- a/kopete/protocols/groupwise/gwmessagemanager.cpp
+++ b/kopete/protocols/groupwise/gwmessagemanager.cpp
@@ -10,8 +10,8 @@
//
//
-#include <qlabel.h>
-#include <qvalidator.h>
+#include <tqlabel.h>
+#include <tqvalidator.h>
#include <kdebug.h>
#include <kdialogbase.h>
#include <kiconloader.h>
@@ -53,22 +53,22 @@ GroupWiseChatSession::GroupWiseChatSession(const Kopete::Contact* user, Kopete::
// make sure Kopete knows about this instance
Kopete::ChatSessionManager::self()->registerChatSession ( this );
- connect ( this, SIGNAL( messageSent ( Kopete::Message &, Kopete::ChatSession * ) ),
- SLOT( slotMessageSent ( Kopete::Message &, Kopete::ChatSession * ) ) );
- connect( this, SIGNAL( myselfTyping ( bool ) ), SLOT( slotSendTypingNotification ( bool ) ) );
- connect( account(), SIGNAL( contactTyping( const ConferenceEvent & ) ),
- SLOT( slotGotTypingNotification( const ConferenceEvent & ) ) );
- connect( account(), SIGNAL( contactNotTyping( const ConferenceEvent & ) ),
- SLOT( slotGotNotTypingNotification( const ConferenceEvent & ) ) );
+ connect ( this, TQT_SIGNAL( messageSent ( Kopete::Message &, Kopete::ChatSession * ) ),
+ TQT_SLOT( slotMessageSent ( Kopete::Message &, Kopete::ChatSession * ) ) );
+ connect( this, TQT_SIGNAL( myselfTyping ( bool ) ), TQT_SLOT( slotSendTypingNotification ( bool ) ) );
+ connect( account(), TQT_SIGNAL( contactTyping( const ConferenceEvent & ) ),
+ TQT_SLOT( slotGotTypingNotification( const ConferenceEvent & ) ) );
+ connect( account(), TQT_SIGNAL( contactNotTyping( const ConferenceEvent & ) ),
+ TQT_SLOT( slotGotNotTypingNotification( const ConferenceEvent & ) ) );
// Set up the Invite menu
m_actionInvite = new KActionMenu( i18n( "&Invite" ), actionCollection() , "gwInvite" );
- connect( m_actionInvite->popupMenu(), SIGNAL( aboutToShow() ), this, SLOT(slotActionInviteAboutToShow() ) ) ;
+ connect( m_actionInvite->popupMenu(), TQT_SIGNAL( aboutToShow() ), this, TQT_SLOT(slotActionInviteAboutToShow() ) ) ;
- m_secure = new KAction( i18n( "Security Status" ), "encrypted", KShortcut(), this, SLOT( slotShowSecurity() ), actionCollection(), "gwSecureChat" );
+ m_secure = new KAction( i18n( "Security Status" ), "encrypted", KShortcut(), this, TQT_SLOT( slotShowSecurity() ), actionCollection(), "gwSecureChat" );
m_secure->setToolTip( i18n( "Conversation is secure" ) );
- m_logging = new KAction( i18n( "Archiving Status" ), "logchat", KShortcut(), this, SLOT( slotShowArchiving() ), actionCollection(), "gwLoggingChat" );
+ m_logging = new KAction( i18n( "Archiving Status" ), "logchat", KShortcut(), this, TQT_SLOT( slotShowArchiving() ), actionCollection(), "gwLoggingChat" );
updateArchiving();
setXMLFile("gwchatui.rc");
@@ -116,7 +116,7 @@ bool GroupWiseChatSession::secure()
void GroupWiseChatSession::setClosed()
{
kdDebug( GROUPWISE_DEBUG_GLOBAL ) << k_funcinfo << " Conference " << m_guid << " is now Closed " << endl;
- m_guid = QString::null;
+ m_guid = TQString::null;
m_flags = m_flags | GroupWise::Closed;
}
@@ -147,15 +147,15 @@ void GroupWiseChatSession::createConference()
{
kdDebug ( GROUPWISE_DEBUG_GLOBAL ) << k_funcinfo << endl;
// form a list of invitees
- QStringList invitees;
+ TQStringList invitees;
Kopete::ContactPtrList chatMembers = members();
for ( Kopete::Contact * contact = chatMembers.first(); contact; contact = chatMembers.next() )
{
invitees.append( static_cast< GroupWiseContact * >( contact )->dn() );
}
// this is where we will set the GUID and send any pending messages
- connect( account(), SIGNAL( conferenceCreated( const int, const GroupWise::ConferenceGuid & ) ), SLOT( receiveGuid( const int, const GroupWise::ConferenceGuid & ) ) );
- connect( account(), SIGNAL( conferenceCreationFailed( const int, const int ) ), SLOT( slotCreationFailed( const int, const int ) ) );
+ connect( account(), TQT_SIGNAL( conferenceCreated( const int, const GroupWise::ConferenceGuid & ) ), TQT_SLOT( receiveGuid( const int, const GroupWise::ConferenceGuid & ) ) );
+ connect( account(), TQT_SIGNAL( conferenceCreationFailed( const int, const int ) ), TQT_SLOT( slotCreationFailed( const int, const int ) ) );
// create the conference
account()->createConference( mmId(), invitees );
@@ -175,7 +175,7 @@ void GroupWiseChatSession::receiveGuid( const int newMmId, const GroupWise::Conf
// they are removed from the chat member list GUI. By re-adding them here, we guarantee they appear
// in the UI again, at the price of a debug message when starting up a new chatwindow
- QPtrListIterator< Kopete::Contact > it( members() );
+ TQPtrListIterator< Kopete::Contact > it( members() );
Kopete::Contact * contact;
while ( ( contact = it.current() ) )
{
@@ -276,14 +276,14 @@ void GroupWiseChatSession::slotGotNotTypingNotification( const ConferenceEvent&
void GroupWiseChatSession::dequeueMessagesAndInvites()
{
kdDebug ( GROUPWISE_DEBUG_GLOBAL ) << k_funcinfo << endl;
- for ( QValueListIterator< Kopete::Message > it = m_pendingOutgoingMessages.begin();
+ for ( TQValueListIterator< Kopete::Message > it = m_pendingOutgoingMessages.begin();
it != m_pendingOutgoingMessages.end();
++it )
{
slotMessageSent( *it, this );
}
m_pendingOutgoingMessages.clear();
- QPtrListIterator< Kopete::Contact > it( m_pendingInvites );
+ TQPtrListIterator< Kopete::Contact > it( m_pendingInvites );
Kopete::Contact * contact;
while ( ( contact = it.current() ) )
{
@@ -304,19 +304,19 @@ void GroupWiseChatSession::slotActionInviteAboutToShow()
m_actionInvite->popupMenu()->clear();
- QDictIterator<Kopete::Contact> it( account()->contacts() );
+ TQDictIterator<Kopete::Contact> it( account()->contacts() );
for( ; it.current(); ++it )
{
if( !members().contains( it.current() ) && it.current()->isOnline() && it.current() != myself() )
{
KAction *a=new KopeteContactAction( it.current(), this,
- SLOT( slotInviteContact( Kopete::Contact * ) ), m_actionInvite );
+ TQT_SLOT( slotInviteContact( Kopete::Contact * ) ), m_actionInvite );
m_actionInvite->insert( a );
m_inviteActions.append( a ) ;
}
}
// Invite someone off-list
- KAction *b=new KAction( i18n ("&Other..."), 0, this, SLOT( slotInviteOtherContact() ), m_actionInvite, "actionOther" );
+ KAction *b=new KAction( i18n ("&Other..."), 0, this, TQT_SLOT( slotInviteOtherContact() ), m_actionInvite, "actionOther" );
m_actionInvite->insert( b );
m_inviteActions.append( b ) ;
}
@@ -330,13 +330,13 @@ void GroupWiseChatSession::slotInviteContact( Kopete::Contact * contact )
}
else
{
- QWidget * w = view(false) ? dynamic_cast<KMainWindow*>( view(false)->mainWidget()->topLevelWidget() ) : 0L;
+ TQWidget * w = view(false) ? dynamic_cast<KMainWindow*>( view(false)->mainWidget()->topLevelWidget() ) : 0L;
bool ok;
- QRegExp rx( ".*" );
- QRegExpValidator validator( rx, this );
- QString inviteMessage = KInputDialog::getText( i18n( "Enter Invitation Message" ),
- i18n( "Enter the reason for the invitation, or leave blank for no reason:" ), QString(),
+ TQRegExp rx( ".*" );
+ TQRegExpValidator validator( rx, this );
+ TQString inviteMessage = KInputDialog::getText( i18n( "Enter Invitation Message" ),
+ i18n( "Enter the reason for the invitation, or leave blank for no reason:" ), TQString(),
&ok, w ? w : Kopete::UI::Global::mainWidget(), "invitemessagedlg", &validator );
if ( ok )
{
@@ -346,7 +346,7 @@ void GroupWiseChatSession::slotInviteContact( Kopete::Contact * contact )
}
}
-void GroupWiseChatSession::inviteContact( const QString &contactId )
+void GroupWiseChatSession::inviteContact( const TQString &contactId )
{
Kopete::Contact * contact = account()->contacts()[ contactId ];
if ( contact )
@@ -358,12 +358,12 @@ void GroupWiseChatSession::slotInviteOtherContact()
if ( !m_searchDlg )
{
// show search dialog
- QWidget * w = ( view(false) ? dynamic_cast<KMainWindow*>( view(false)->mainWidget()->topLevelWidget() ) :
+ TQWidget * w = ( view(false) ? dynamic_cast<KMainWindow*>( view(false)->mainWidget()->topLevelWidget() ) :
Kopete::UI::Global::mainWidget() );
m_searchDlg = new KDialogBase( w, "invitesearchdialog", false, i18n( "Search for Contact to Invite" ), KDialogBase::Ok|KDialogBase::Cancel );
- m_search = new GroupWiseContactSearch( account(), QListView::Single, true, m_searchDlg, "invitesearchwidget" );
+ m_search = new GroupWiseContactSearch( account(), TQListView::Single, true, m_searchDlg, "invitesearchwidget" );
m_searchDlg->setMainWidget( m_search );
- connect( m_search, SIGNAL( selectionValidates( bool ) ), m_searchDlg, SLOT( enableButtonOK( bool ) ) );
+ connect( m_search, TQT_SIGNAL( selectionValidates( bool ) ), m_searchDlg, TQT_SLOT( enableButtonOK( bool ) ) );
m_searchDlg->enableButtonOK( false );
}
m_searchDlg->show();
@@ -372,17 +372,17 @@ void GroupWiseChatSession::slotInviteOtherContact()
void GroupWiseChatSession::slotSearchedForUsers()
{
// create an item for each result, in the block list
- QValueList< ContactDetails > selected = m_search->selectedResults();
+ TQValueList< ContactDetails > selected = m_search->selectedResults();
if ( selected.count() )
{
- QWidget * w = ( view(false) ? dynamic_cast<KMainWindow*>( view(false)->mainWidget()->topLevelWidget() ) :
+ TQWidget * w = ( view(false) ? dynamic_cast<KMainWindow*>( view(false)->mainWidget()->topLevelWidget() ) :
Kopete::UI::Global::mainWidget() );
ContactDetails cd = selected.first();
bool ok;
- QRegExp rx( ".*" );
- QRegExpValidator validator( rx, this );
- QString inviteMessage = KInputDialog::getText( i18n( "Enter Invitation Message" ),
- i18n( "Enter the reason for the invitation, or leave blank for no reason:" ), QString(),
+ TQRegExp rx( ".*" );
+ TQRegExpValidator validator( rx, this );
+ TQString inviteMessage = KInputDialog::getText( i18n( "Enter Invitation Message" ),
+ i18n( "Enter the reason for the invitation, or leave blank for no reason:" ), TQString(),
&ok, w , "invitemessagedlg", &validator );
if ( ok )
{
@@ -395,7 +395,7 @@ void GroupWiseChatSession::addInvitee( const Kopete::Contact * c )
{
// create a placeholder contact for each invitee
kdDebug ( GROUPWISE_DEBUG_GLOBAL ) << k_funcinfo << endl;
- QString pending = i18n("label attached to contacts who have been invited but are yet to join a chat", "(pending)");
+ TQString pending = i18n("label attached to contacts who have been invited but are yet to join a chat", "(pending)");
Kopete::MetaContact * inviteeMC = new Kopete::MetaContact();
inviteeMC->setDisplayName( c->metaContact()->displayName() + pending );
GroupWiseContact * invitee = new GroupWiseContact( account(), c->contactId() + " " + pending, inviteeMC, 0, 0, 0 );
@@ -417,7 +417,7 @@ void GroupWiseChatSession::joined( GroupWiseContact * c )
{
if ( pending->contactId().startsWith( c->contactId() ) )
{
- removeContact( pending, QString::null, Kopete::Message::PlainText, true );
+ removeContact( pending, TQString::null, Kopete::Message::PlainText, true );
break;
}
}
@@ -459,13 +459,13 @@ void GroupWiseChatSession::inviteDeclined( GroupWiseContact * c )
{
if ( pending->contactId().startsWith( c->contactId() ) )
{
- removeContact( pending, QString::null, Kopete::Message::PlainText, true );
+ removeContact( pending, TQString::null, Kopete::Message::PlainText, true );
break;
}
}
m_invitees.remove( pending );
- QString from = c->metaContact()->displayName();
+ TQString from = c->metaContact()->displayName();
Kopete::Message declined = Kopete::Message( myself(), members(),
i18n("%1 has rejected an invitation to join this conversation.").arg( from ),
@@ -476,7 +476,7 @@ void GroupWiseChatSession::inviteDeclined( GroupWiseContact * c )
void GroupWiseChatSession::updateArchiving()
{
bool archiving = false;
- QPtrListIterator< Kopete::Contact > it( members() );
+ TQPtrListIterator< Kopete::Contact > it( members() );
GroupWiseContact * contact;
while ( ( contact = static_cast<GroupWiseContact*>( it.current() ) ) )
{
@@ -501,14 +501,14 @@ void GroupWiseChatSession::updateArchiving()
void GroupWiseChatSession::slotShowSecurity()
{
- QWidget * w = ( view(false) ? dynamic_cast<KMainWindow*>( view(false)->mainWidget()->topLevelWidget() ) :
+ TQWidget * w = ( view(false) ? dynamic_cast<KMainWindow*>( view(false)->mainWidget()->topLevelWidget() ) :
Kopete::UI::Global::mainWidget() );
KMessageBox::queuedMessageBox( w, KMessageBox::Information, i18n( "This conversation is secured with SSL security." ), i18n("Security Status" ) );
}
void GroupWiseChatSession::slotShowArchiving()
{
- QWidget * w = ( view(false) ? dynamic_cast<KMainWindow*>( view(false)->mainWidget()->topLevelWidget() ) :
+ TQWidget * w = ( view(false) ? dynamic_cast<KMainWindow*>( view(false)->mainWidget()->topLevelWidget() ) :
Kopete::UI::Global::mainWidget() );
KMessageBox::queuedMessageBox( w, KMessageBox::Information, i18n( "This conversation is being logged administratively." ), i18n("Archiving Status" ) );
}