Changeset 44:e087b878bc49 in SMSSender


Ignore:
Timestamp:
Jan 28, 2010 3:54:36 PM (8 years ago)
Author:
Sämy Zehnder <saemy.zehnder@…>
Branch:
3.0
Convert:
svn:3639001d-8e34-449c-bb86-3782b86c4877/branches/3.0@43
Message:
  • Removed unused libraries from project-files.
  • Fixed segfault on account creation (the default storage for a gateway is assigned at startup now; not in account loading, which was erroneous)
  • Removed versioning from Makefiles
Files:
9 deleted
13 edited

Legend:

Unmodified
Added
Removed
  • gateways/SwisscomXtraZone/SwisscomXtraZone.pro

    r43 r44  
    1212LIBS += -L../../lib/
    1313# Attend the order!
    14 LIBS += -ltntdb \
    15     -linterfaces \
     14LIBS += -linterfaces \
    1615    -lgateway \
    1716    -linterfaces \
  • smssender.pro

    r43 r44  
    88    sql
    99LIBS += -Llib/
    10 LIBS += -ltntdb \
    11     -lcrypto++ \
     10LIBS += -lcrypto++ \
    1211    -ldatatypes \
    1312    -lutils \
  • src/business/BCGatewayManager.cpp

    r40 r44  
    1111
    1212#include "BCLibraryLoader.h"
     13#include "../persistence/PersistenceFactory.h"
    1314
    1415BCGatewayManager* BCGatewayManager::instance_=0;
     
    2223
    2324    foreach (IGateway* gateway, BCLibraryLoader::instance()->gateways()) {
     25        gateway->setDefaultStorage(PersistenceFactory::instance()->getStorage());
    2426        gatewayList_.insert(gateway->name(), gateway);
    2527    }
  • src/main.cpp

    r42 r44  
    33#include <QtGui>
    44#include <QApplication>
    5 
    6 #include <cxxtools/loginit.h>
    75
    86#include <QString>
     
    5048
    5149int main(int argc, char *argv[]){
    52     log_init();
    53 
    5450    QApplication a(argc, argv);
    5551
  • src/persistence/storage/DAAccountListManager.cpp

    r43 r44  
    3636
    3737    // TODO: What if this gateway is NULL (is not loaded)?
    38     gateway->setDefaultStorage(storage());
    39 
    4038    IAccount* account = gateway->createAccountInstance();
    4139    account->setId(accountId);
  • src/ui/models/accountmodel.cpp

    r43 r44  
    77{
    88    connect(BCAccountManager::instance(), SIGNAL(accountAdded(IAccount*)),
    9             this, SLOT(accountDataChanged(IAccount*)));
     9            this, SLOT(accountUpdated(IAccount*)));
    1010    connect(BCAccountManager::instance(), SIGNAL(accountDataChanged(IAccount*)),
    11             this, SLOT(accountDataChanged(IAccount*)));
     11            this, SLOT(accountUpdated(IAccount*)));
    1212    connect(BCAccountManager::instance(), SIGNAL(accountRemoved(IAccount*)),
    13             this, SLOT(accountDataChanged(IAccount*)));
     13            this, SLOT(accountUpdated(IAccount*)));
    1414}
    1515AccountModel::~AccountModel() {
    1616    disconnect(BCAccountManager::instance(), SIGNAL(accountAdded(IAccount*)),
    17                this, SLOT(accountDataChanged(IAccount*)));
     17               this, SLOT(accountUpdated(IAccount*)));
    1818    disconnect(BCAccountManager::instance(), SIGNAL(accountDataChanged(IAccount*)),
    19                this, SLOT(accountDataChanged(IAccount*)));
     19               this, SLOT(accountUpdated(IAccount*)));
    2020    disconnect(BCAccountManager::instance(), SIGNAL(accountRemoved(IAccount*)),
    21                this, SLOT(accountDataChanged(IAccount*)));
     21               this, SLOT(accountUpdated(IAccount*)));
    2222}
    2323
     
    2727    QModelIndex idx_start = index(row, 0);
    2828    QModelIndex idx_end   = index(row, COL_COUNT);
    29     emit dataChanged(idx_start, idx_end);
     29
     30    if (idx_start.isValid() && idx_end.isValid()) {
     31        emit dataChanged(idx_start, idx_end);
     32    } else {
     33        reset();
     34    }
    3035}
    3136
  • ui_vcaccountlist.h

    r43 r44  
    22** Form generated from reading ui file 'vcaccountlist.ui'
    33**
    4 ** Created: Tue Jan 26 20:40:59 2010
     4** Created: Thu Jan 28 15:19:16 2010
    55**      by: Qt User Interface Compiler version 4.5.2
    66**
  • ui_vcaddressbook.h

    r43 r44  
    22** Form generated from reading ui file 'vcaddressbook.ui'
    33**
    4 ** Created: Tue Jan 26 20:40:59 2010
     4** Created: Thu Jan 28 15:19:16 2010
    55**      by: Qt User Interface Compiler version 4.5.2
    66**
  • ui_vceditaccount.h

    r43 r44  
    22** Form generated from reading ui file 'vceditaccount.ui'
    33**
    4 ** Created: Tue Jan 26 20:40:59 2010
     4** Created: Thu Jan 28 15:19:16 2010
    55**      by: Qt User Interface Compiler version 4.5.2
    66**
  • ui_vceditcontact.h

    r43 r44  
    22** Form generated from reading ui file 'vceditcontact.ui'
    33**
    4 ** Created: Tue Jan 26 20:40:59 2010
     4** Created: Thu Jan 28 15:19:16 2010
    55**      by: Qt User Interface Compiler version 4.5.2
    66**
  • ui_vceditgroup.h

    r43 r44  
    22** Form generated from reading ui file 'vceditgroup.ui'
    33**
    4 ** Created: Tue Jan 26 20:40:59 2010
     4** Created: Thu Jan 28 15:19:16 2010
    55**      by: Qt User Interface Compiler version 4.5.2
    66**
  • ui_vcmain.h

    r43 r44  
    22** Form generated from reading ui file 'vcmain.ui'
    33**
    4 ** Created: Tue Jan 26 20:40:59 2010
     4** Created: Thu Jan 28 15:19:16 2010
    55**      by: Qt User Interface Compiler version 4.5.2
    66**
  • ui_vcsettings.h

    r43 r44  
    22** Form generated from reading ui file 'vcsettings.ui'
    33**
    4 ** Created: Tue Jan 26 20:40:59 2010
     4** Created: Thu Jan 28 15:19:16 2010
    55**      by: Qt User Interface Compiler version 4.5.2
    66**
Note: See TracChangeset for help on using the changeset viewer.