Changeset 67:578192d6fe64 in SMSSender for lib/libgateway/src/business/AbstractAccount.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
  • lib/libgateway/src/business/AbstractAccount.cpp

    r43 r67  
    105105
    106106void AbstractAccount::initialize(){
    107     if (initializing_ || initialized_ || !isEnabled()) {
     107    if (isInitializing() || isInitialized() || !isEnabled()) {
    108108        return;
    109109    }
     
    120120
    121121        if (!stoppingInitialization_)
    122             initialized_ = true;
     122            setInitialized(true);
    123123    }catch (...) {
    124124        initializing_ = false;
     
    142142}
    143143
     144void AbstractAccount::setInitialized(bool initialized) {
     145    SET_IF_DIFFERENT(initialized_, initialized);
     146    emit accountEvents()->dataChanged();
     147}
     148
     149
    144150void AbstractAccount::unInitialize() {
    145151    if (isInitializing())
    146152        stopInitializing();
    147153
    148     initialized_ = false;
     154    setInitialized(false);
    149155}
    150156
Note: See TracChangeset for help on using the changeset viewer.