~ubuntu-branches/ubuntu/saucy/kopete/saucy-updates

« back to all changes in this revision

Viewing changes to protocols/skype/skypeaccount.cpp

  • Committer: Package Import Robot
  • Author(s): Howard Chan, Michał Zając, Howard Chan
  • Date: 2013-06-28 18:19:57 UTC
  • mfrom: (1.1.1)
  • Revision ID: package-import@ubuntu.com-20130628181957-oe71prbd9qv1ygop
Tags: 4:4.10.90-0ubuntu1
[ Michał Zając ]
* New upstream beta release

[ Howard Chan ]
* Delete the API patch since it's included in upstream now.
* Fix control file to make -dbg depend on main package.

Show diffs side-by-side

added added

removed removed

Lines of Context:
367
367
        Kopete::Group * skypeGroup;
368
368
 
369
369
        bool root = false;
370
 
        if (group.isEmpty() || groupID == -1) { // If skype group hasnt name, in kopete will be in top
 
370
        if (group.isEmpty() || groupID == -1) { // If skype group has not name, in kopete will be in top
371
371
                skypeGroup = Kopete::Group::topLevel();
372
372
                root = true;
373
373
        } else {
374
 
                skypeGroup = Kopete::ContactList::self()->findGroup(group); //get kopete group by skype group name. If skype group in kopete doesnt exist, create it automatically
 
374
                skypeGroup = Kopete::ContactList::self()->findGroup(group); //get kopete group by skype group name. If skype group in kopete does not exist, create it automatically
375
375
                if ( skypeGroup == Kopete::Group::topLevel() ){ //if group in skype has name i18n("Top Level") kopete get top level group, but in skype top level group is group without name
376
376
                        QList <Kopete::Group *> groups = Kopete::ContactList::self()->groups(); //get all groups
377
377
                        bool found = false;
1012
1012
        if ( groupID != -1 )
1013
1013
                d->skype.deleteGroup(groupID);
1014
1014
        else
1015
 
                kDebug(SKYPE_DEBUG_GLOBAL) << "Group" << group->displayName() << "in skype doesnt exist, skipping";
 
1015
                kDebug(SKYPE_DEBUG_GLOBAL) << "Group" << group->displayName() << "in skype does not exist, skipping";
1016
1016
}
1017
1017
 
1018
1018
void SkypeAccount::renameGroup (Kopete::Group * group, const QString &oldname){
1021
1021
        if ( groupID != -1 )
1022
1022
                d->skype.renameGroup( groupID, group->displayName() );
1023
1023
        else
1024
 
                kDebug(SKYPE_DEBUG_GLOBAL) << "Old group" << oldname << "in skype doesnt exist, skipping";
 
1024
                kDebug(SKYPE_DEBUG_GLOBAL) << "Old group" << oldname << "in skype does not exist, skipping";
1025
1025
}
1026
1026
 
1027
1027
void SkypeAccount::openFileTransfer(const QString &user, const QString &url) {