Changeset 67:578192d6fe64 in SMSSender for src/business/BCAccountLoadThread.cpp


Ignore:
Timestamp:
Feb 7, 2010 4:11:28 PM (12 years ago)
Author:
Sämy Zehnder <saemy.zehnder@…>
Branch:
3.0
Convert:
svn:3639001d-8e34-449c-bb86-3782b86c4877/branches/3.0@66
Message:
  • added synchttp
  • backup before removing these diamond interfaces...
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/business/BCAccountLoadThread.cpp

    r62 r67  
    11#include "BCAccountLoadThread.h"
    22
    3 /*short const AccountLoadThread::State::Unloaded   = 0;
    4 short const AccountLoadThread::State::Loading    = 1;
    5 short const AccountLoadThread::State::Loaded     = 2;
    6 short const AccountLoadThread::State::Cancelling = 3;
    7 short const AccountLoadThread::State::Cancelled  = 4;
    8 short const AccountLoadThread::State::Failed     = 5;*/
    9 
    10 BCAccountLoadThread::BCAccountLoadThread(IAccount* account, QObject* parent /* = 0 */)
     3BCAccountLoadThread::BCAccountLoadThread(IAccount* account, QObject* parent)
    114    : QThread(parent)
    125    , account_(account)
     
    2013        if (account_->isInitialized()) {
    2114            setLoadState(Loaded);
    22             loaded(account()); // Signal
    23             loadingFinished(account(), loadState()); // Signal
     15            emit loaded(account()); // Signal
     16            emit loadingFinished(account(), loadState()); // Signal
    2417
    2518            return;
     
    3225        } catch (EException* exception) {
    3326            setLoadState(Failed);
    34             loadingFailed(account(), exception); // Signal
     27            emit loadingFailed(account(), exception); // Signal
    3528        } catch (...) {
    3629        setLoadState(Failed);
    37             loadingFailed(account(), new EException("Unknown error occured while loading an account.")); // Signal
     30            emit loadingFailed(account(), new EException("Unknown error occured while loading an account.")); // Signal
    3831        }
    3932
     
    4740        default:
    4841            setLoadState(Loaded);
    49             loaded(account()); // Signal
     42            emit loaded(account()); // Signal
    5043            break;
    5144        }
    52         loadingFinished(account(), loadState()); // Signal
     45        emit loadingFinished(account(), loadState()); // Signal
    5346}
    5447
     
    6356        loadState_ = loadState;
    6457
    65         loadStateChanged(account(), this->loadState()); // Signal
     58        emit loadStateChanged(account(), this->loadState()); // Signal
    6659    }
    6760}
Note: See TracChangeset for help on using the changeset viewer.