Ticket #65: remove-plain-forwards.patch
| File remove-plain-forwards.patch, 10.2 KB (added by amroth, 4 years ago) |
|---|
-
kmess/grouplistviewitem.cpp
170 170 if(! group_->isSpecialGroup()) 171 171 { 172 172 moveAction_ = new KAction(); 173 connect(moveAction_, SIGNAL(activated()), this, S LOT(slotForwardActivated()));173 connect(moveAction_, SIGNAL(activated()), this, SIGNAL(moveToGroup(group_))); 174 174 copyAction_ = new KAction(); 175 connect(copyAction_, SIGNAL(activated()), this, S LOT(slotForwardCopyActivated()));175 connect(copyAction_, SIGNAL(activated()), this, SIGNAL(copyToGroup(group_))); 176 176 } 177 177 178 178 // Attach group signals … … 328 328 } 329 329 330 330 331 332 // Forward when moveAction_ is activated333 void GroupListViewItem::slotForwardActivated()334 {335 emit moveToGroup(group_);336 }337 338 339 void GroupListViewItem::slotForwardCopyActivated()340 {341 emit copyToGroup(group_);342 }343 344 345 331 // Update the appearance of the item 346 332 void GroupListViewItem::slotUpdateAppearance() 347 333 { -
kmess/grouplistviewitem.h
84 84 void slotContactOffline(); 85 85 // Update the online/offline counters 86 86 void slotContactOnline(); 87 // Forward when moveAction_ is activated88 void slotForwardActivated();89 // Forward when copyAction_ is activated90 void slotForwardCopyActivated();91 87 // Update the appearance of the item 92 88 void slotUpdateAppearance(); 93 89 -
kmess/contact/contact.h
173 173 // The contact's online status 174 174 QString status_; 175 175 176 private slots: // Slots177 // Forward the "changed friendlyname" signal178 void forwardChangedFriendlyName();179 // Forward the "changed picture" signal180 void forwardChangedPicture();181 182 176 signals: // Public signals 183 177 // Signal that the contact may have changed list affiliation 184 178 void changedList(Contact *contact); -
kmess/contact/contactlist.cpp
114 114 115 115 // Attach the signals 116 116 connect( contact, SIGNAL( changedMsnObject(Contact*) ), // Contact changed msnobject. 117 this, S LOT ( slotForwardContactChangedMsnObject(Contact*) ));117 this, SIGNAL( contactChangedMsnObject(Contact*) )); 118 118 connect( contact, SIGNAL( contactOffline(Contact*,bool) ), // Contact went offline 119 119 this, SLOT ( slotForwardContactOffline(Contact*,bool) )); 120 120 connect( contact, SIGNAL( contactOnline(Contact*,bool) ), // Contact went online 121 121 this, SLOT ( slotForwardContactOnline(Contact*,bool) )); 122 122 connect( contact, SIGNAL( changedGroup(Contact*) ), // Contact moved 123 this, S LOT ( slotForwardContactMoved(Contact*) ));123 this, SIGNAL( contactMoved(Contact*) )); 124 124 connect( contact, SIGNAL( changedList(Contact*) ), // Contact was added/removed from certain lists 125 this, S LOT ( slotForwardContactMoved(Contact*) ));125 this, SIGNAL( contactMoved(Contact*) )); 126 126 127 127 // HACK: It would be nicer if the GUI desided whether a contact-item should be moved if it's lists changed. 128 128 // Currently these signal connection of changedList() assumes the GUI uses "groups to sort various lists". … … 365 365 366 366 367 367 368 // Forward from a contact that it's msn object changed369 void ContactList::slotForwardContactChangedMsnObject(Contact *contact)370 {371 emit contactChangedMsnObject( contact );372 }373 374 375 376 // Forward from a contact that is has moved377 void ContactList::slotForwardContactMoved(Contact *contact)378 {379 emit contactMoved(contact);380 }381 382 383 384 368 // Forward from a contact that it is offline 385 369 void ContactList::slotForwardContactOffline(Contact *contact, bool showBaloon) 386 370 { -
kmess/contact/contact.cpp
78 78 // also there. 79 79 extension_ = new ContactExtension( handle ); 80 80 81 connect ( extension_, SIGNAL( changedFriendlyName() ),82 this, SLOT( forwardChangedFriendlyName() ) );83 connect ( extension_, SIGNAL( changedPicture() ),84 this, SLOT( forwardChangedPicture() ) );81 connect ( extension_, SIGNAL( changedFriendlyName() ), 82 this, SIGNAL( changedFriendlyName() ) ); 83 connect ( extension_, SIGNAL( changedPicture() ), 84 this, SIGNAL( changedPicture() ) ); 85 85 } 86 86 87 87 … … 139 139 140 140 141 141 142 // Slot to pass on the changedFriendlyName()143 void Contact::forwardChangedFriendlyName()144 {145 emit changedFriendlyName();146 }147 148 149 150 // Forward the "changed picture" signal151 void Contact::forwardChangedPicture()152 {153 emit changedPicture();154 }155 156 157 158 142 // Return the path to the contact's picture 159 143 QString Contact::getContactPicturePath() const 160 144 { -
kmess/contact/contactlist.h
105 105 bool groupExists( QString groupId ); 106 106 107 107 private slots: // Private slots 108 // Forward from a contact that it's msn object changed109 void slotForwardContactChangedMsnObject(Contact *contact);110 // Forward from a contact that is has moved111 void slotForwardContactMoved(Contact *contact);112 108 // Forward from a contact that it is offline 113 109 void slotForwardContactOffline(Contact *contact, bool showBaloon); 114 110 // Forward from a contact that it is contact is online -
kmess/chat/chatwindow.h
174 174 void contactTyping(QString handle, QString friendlyName); 175 175 // The emoticon button was pressed. 176 176 void emoticonButtonPressed(); 177 // Forward the application command to the ChatMaster178 void forwardAppCommand(QString cookie, QString contact, QString command);179 177 // Invite a contact to the chat 180 178 void inviteContact(QString handle); 181 179 // Notify the user of a received nudge -
kmess/chat/chatmaster.h
84 84 void forwardRequestNewSwitchboard( QString handle ); 85 85 // Forward a request to add or remove a contact from the contactlist, which comes from the ContactFrame. 86 86 void forwardSetContactAdded( QString handle, bool isAdded ); 87 // Forward a request to allow a contact, which comes from the ContactFrame.88 void forwardSetContactAllowed( QString handle );89 87 // Forward a request to block or unblock a contact, which comes from the ContactFrame. 90 88 void forwardSetContactBlocked( QString handle, bool isBlocked ); 91 89 // A chat window is closing -
kmess/chat/chatwindow.cpp
538 538 539 539 540 540 541 // Forward the application command to the ChatMaster542 void ChatWindow::forwardAppCommand(QString cookie, QString contact, QString command)543 {544 emit appCommand(cookie, contact, command);545 }546 547 548 549 541 // Return the contact action with the given handle 550 542 ContactAction* ChatWindow::getContactActionByHandle(const QString& handle) 551 543 { … … 651 643 connect( chatView_, SIGNAL( sendFiles(QStringList) ), 652 644 this, SLOT( slotStartFileTransfer(QStringList) ) ); 653 645 connect( chatView_, SIGNAL( appCommand(QString, QString, QString) ), 654 this, SLOT( forwardAppCommand(QString, QString, QString) ) );646 this, SIGNAL( appCommand(QString, QString, QString) ) ); 655 647 connect( chatView_, SIGNAL( sendMessageToContact(QString) ), 656 648 this, SLOT( userSentMessage() ) ); 657 649 -
kmess/chat/chatmaster.cpp
155 155 156 156 157 157 158 // Forward a request to allow a contact, which comes from the ContactFrame.159 void ChatMaster::forwardSetContactAllowed( QString handle )160 {161 emit allowContact( handle );162 }163 164 165 166 158 // Forward a request to block or unblock a contact, which comes from the ContactFrame. 167 159 void ChatMaster::forwardSetContactBlocked( QString handle, bool isBlocked ) 168 160 { … … 1306 1298 connect( chatWindow, SIGNAL( newChatMessage(const ChatMessage&, ChatWindow*) ), 1307 1299 this, SLOT ( forwardNewChatMessage(const ChatMessage&, ChatWindow*) )); 1308 1300 connect( chatWindow, SIGNAL( setContactAllowed( QString ) ), 1309 this, S LOT ( forwardSetContactAllowed( QString ) ) );1301 this, SIGNAL( allowContact( QString ) ) ); 1310 1302 connect( chatWindow, SIGNAL( setContactAdded( QString, bool ) ), 1311 1303 this, SLOT ( forwardSetContactAdded( QString, bool ) ) ); 1312 1304 connect( chatWindow, SIGNAL( setContactBlocked( QString, bool ) ),
