Changeset 92:10092a6c2503 in SMSSender


Ignore:
Timestamp:
Jun 28, 2010 12:49:30 PM (8 years ago)
Author:
Sämy Zehnder <saemy.zehnder@…>
Branch:
3.0
Convert:
svn:3639001d-8e34-449c-bb86-3782b86c4877/branches/3.0@95
Message:
  • Added copyright info to each file header.
  • Renamed all camelcase filenames to lowercase.
  • Implemented dummy account class. We can use a accounts now, even if they were erroneous. We can therefore list erroneous accounts and make them editable now.
  • Started with a deployment-howto.
Files:
63 added
58 deleted
115 edited
15 moved

Legend:

Unmodified
Added
Removed
  • deploy/ubuntu/smssender/debian/changelog

    r91 r92  
     1smssender (3.0.0.alpha3-0ubuntu1) lucid; urgency=low
     2
     3  * Improved recipient selection in main form.
     4  * Erroneous accounts are editable now.
     5
     6 -- Sämy Zehnder <saemy.zehnder@gorrion.ch>  Mon, 28 Jun 2010 12:04:01 +0200
     7
     8smssender (3.0.0.alpha2-0ubuntu3) lucid; urgency=low
     9
     10  * Added missing dependency.
     11
     12 -- Sämy Zehnder <saemy.zehnder@gorrion.ch>  Fri, 11 Jun 2010 17:15:03 +0200
     13
     14smssender (3.0.0.alpha2-0ubuntu2) lucid; urgency=low
     15
     16  * Fixed some packaging issues.
     17
     18 -- Sämy Zehnder <saemy.zehnder@gorrion.ch>  Fri, 11 Jun 2010 14:27:05 +0200
     19
    120smssender (3.0.0.alpha2-0ubuntu1) lucid; urgency=low
    221
  • deploy/ubuntu/smssender/debian/control

    r91 r92  
    1212Package: smssender
    1313Architecture: any
    14 Depends: ${shlibs:Depends}, ${misc:Depends}
     14Depends: ${shlibs:Depends}, ${misc:Depends},
     15        libqt4-sql-sqlite
    1516Description: A fast and easy-to-use client for sending sms over internet gateways
    1617 This application simplifies the procedure of sending sms via websites as of
  • do_lupdate

    r86 r92  
    11#!/bin/bash
    22
    3 lupdate -no-obsolete -recursive lib/libutils lib/libdatatypes src/ -ts locale/de.ts
     3lupdate -recursive lib/libutils lib/libdatatypes src/ -ts locale/de.ts
    44
    55cd gateways/SwisscomXtraZone
    6 lupdate -no-obsolete SwisscomXtraZone.pro
     6lupdate SwisscomXtraZone.pro
    77cd ../../
    88
    99cd gateways/SwisscomXtraZone_Old
    10 lupdate -no-obsolete SwisscomXtraZone_Old.pro
     10lupdate SwisscomXtraZone_Old.pro
  • gateways/SwisscomXtraZone/src/exceptions/eabortexception.h

    r88 r92  
    2323
    2424namespace SwisscomXtraZone {
    25     class SMAKE_VISIBLE EAbortException: public EException {
    26     public:
    27         enum Purpose {
    28             FileNotFound,
    29             InvalidLibraryFile,
    30             VersionMismatch,
    31             Other,
    32             Unknown
    33         };
    3425
    35         EAbortException();
    36         virtual void raise();
     26class SMAKE_VISIBLE EAbortException: public EException {
     27public:
     28    enum Purpose {
     29        FileNotFound,
     30        InvalidLibraryFile,
     31        VersionMismatch,
     32        Other,
     33        Unknown
     34    };
    3735
    38     protected:
    39         virtual EAbortException* createClonedInstance() const throw();
    40     };
    41 } // namespace SwisscomXtraZone
     36    EAbortException();
     37
     38public:
     39    /* EException */
     40    virtual void raise();
     41
     42protected:
     43    /* EException */
     44    EAbortException* createClonedInstance() const throw();
     45};
     46
     47}
    4248
    4349#endif /* SWISSCOMXTRAZONE_EABORTEXCEPTION_H_ */
  • gateways/SwisscomXtraZone/src/main.cpp

    r89 r92  
    1818#include "main.h"
    1919
    20 #include "business/BCGateway.h"
     20#include <QCoreApplication>
     21#include <QDebug>
    2122
    22 #include <QDebug>
    23 #include <QCoreApplication>
     23#include "business/bcgateway.h"
    2424
    2525namespace SwisscomXtraZone {
     
    3535SVersion Library::version() const {
    3636    return SVersion(LIB_VERSION);
     37}
     38int Library::compatibilityVersion() const {
     39    return ILibrary::COMPATIBILITY_VERSION;
    3740}
    3841
  • gateways/SwisscomXtraZone/src/main.h

    r89 r92  
    2121#include <QObject>
    2222
    23 #if (defined(QT_DLL) || defined(QT_SHARED)) && !defined(QT_PLUGIN)
    24 #   define IMPORT_EXPORT Q_DECL_EXPORT
    25 #else
    26 #   define IMPORT_EXPORT Q_DECL_IMPORT
    27 #endif
    28 
    29 
    3023#include <ilibrary.h>
    3124#include <igateway.h>
     
    3831
    3932public:
    40     Library() {};
    41     static ILibrary* instance();
     33    static ILibrary*   instance();
    4234
     35public:
    4336    /* ILibrary */
    4437    QString            identificationKey() const;
    4538    SVersion           version() const;
     39    int                compatibilityVersion() const;
    4640
    4741    QSet<QTranslator*> getTranslators() const;
    4842    IGateway*          getGateway() const;
     43
     44private:
     45    Library() {};
    4946
    5047private:
  • gateways/SwisscomXtraZone/src/ui/vcsettingswidget.cpp

    r82 r92  
    2323#include <stdexceptions.h>
    2424
    25 #include "business/BCAccount.h"
     25#include "business/bcaccount.h"
    2626
    2727namespace SwisscomXtraZone {
    2828
    29 VCSettingsWidget::VCSettingsWidget(QWidget* parent /* = 0 */)
     29VCSettingsWidget::VCSettingsWidget(QWidget* parent)
    3030    : IAccountSettingsWidget(parent)
    3131{
  • gateways/SwisscomXtraZone/src/ui/vcsettingswidget.h

    r82 r92  
    3333    VCSettingsWidget(QWidget* parent = 0);
    3434
     35public:
    3536    /* IAccountSettingsWidget */
    3637    void loadFromAccount(IAccount* account);
  • gateways/SwisscomXtraZone/swisscomxtrazone.pro

    r90 r92  
    2323    ../../lib/libdatatypes/src \
    2424    ../../lib/libutils/src/
    25 HEADERS += src/business/validation/BCAccountValidator.h \
    26     src/business/BCAccount.h \
    27     src/business/BCGateway.h \
     25HEADERS += src/business/validation/bcaccountvalidator.h \
     26    src/business/bcaccount.h \
     27    src/business/bcgateway.h \
    2828    src/exceptions/eabortexception.h \
    29     src/persistence/DAAccountStorageOfficer.h \
     29    src/persistence/daaccountstorageofficer.h \
    3030    src/ui/vccaptchadialog.h \
    3131    src/ui/vcsettingswidget.h \
    3232    src/main.h
    33 SOURCES += src/business/validation/BCAccountValidator.cpp \
    34     src/business/BCAccount.cpp \
    35     src/business/BCGateway.cpp \
     33SOURCES += src/business/validation/bcaccountvalidator.cpp \
     34    src/business/bcaccount.cpp \
     35    src/business/bcgateway.cpp \
    3636    src/exceptions/eabortexception.cpp \
    37     src/persistence/DAAccountStorageOfficer.cpp \
     37    src/persistence/daaccountstorageofficer.cpp \
    3838    src/ui/vccaptchadialog.cpp \
    3939    src/ui/vcsettingswidget.cpp \
  • knowledgebase

    r89 r92  
    22
    33
    4 MAC:
    5     * Use qmake -spec macx-g++ -config release xxx.pro
    6    
    7 WIN:
    8     * Use qmake -config release xxx.pro
    9     * To deploy the application the following file structure is necessary:
    10         /
    11             copyright.txt
    12             efsadu.dll
    13             libeay32.dll
    14             libgcc_s_dw2-1.dll
    15             mingwm10.dll
    16             msvcp60.dll
    17             msvcr90.dll
    18             msvcrt.dll
    19             QtCore4.dll
    20             QtGui4.dll
    21             QtNetwork4.dll
    22             QtSql4.dll
    23             smssender.exe
    24             ssleay.dll
    25            
    26         /gateways/
    27             SwisscomXtraZone.dll
    28            
    29         /lib/
    30             imageformats/
    31                 qgif4.dll
    32                 qico4.dll
    33                 qjpeg4.dll
    34                 qmng4.dll
    35                 qsvg4.dll
    36                 qtiff4.dll
    37                
    38             sqldrivers/
    39                 qswlite4.dll
  • lib/libdatatypes/lib/libdatatypes.qrc

    r89 r92  
    33        <file>GorrionRootCA.crt</file>
    44    </qresource>
     5    <qresource prefix="/icons">
     6        <file>warning.png</file>
     7    </qresource>
    58</RCC>
  • lib/libdatatypes/libdatatypes.pro

    r89 r92  
     1# The major version of the library which is required to load it.
     2# Increase this, if interfaces in libdatatypes have changed.
     3DEFINES += LIBDATATYPES_COMPATIBILITY_VERSION=1
     4#
    15VERSION = 2.0.0
    26TEMPLATE = lib
     
    3135HEADERS += src/structs.h \
    3236    src/scontact.h \
     37    src/sdummyaccount.h \
    3338    src/sgroup.h \
    3439    src/sgroup_p.h \
     
    5762    src/exceptions/persistence/storageexceptions.h \
    5863    src/interfaces/iaccount.h \
    59     src/interfaces/ibinary.h \
    6064    src/interfaces/igateway.h \
    6165    src/interfaces/iinterface.h \
     
    8185    src/validation/sstdaccountvalidator.h \
    8286    src/validation/svalidationresult.h
    83 SOURCES += src/scontact.cpp \
     87SOURCES +=src/scontact.cpp \
     88    src/sdummyaccount.cpp \
    8489    src/sgroup.cpp \
    8590    src/shttpcookiemanager.cpp \
     
    103108    src/exceptions/elibraryloadexception.cpp \
    104109    src/interfaces/iaccount.cpp \
     110    src/interfaces/ilibrary.cpp \
    105111    src/validation/sloginaccountvalidator.cpp \
    106112    src/validation/sstdaccountvalidator.cpp \
  • lib/libdatatypes/src/abstract/abstractaccount.cpp

    r88 r92  
    1 
     1/*
     2 smssender - A frontend for fast and easy SMS sending over different gateways.
     3 Copyright (C) 2007-2010, gorrión. See http://smssender.gorrion.ch
     4
     5 This program is free software: you can redistribute it and/or modify
     6 it under the terms of the GNU General Public License as published by
     7 the Free Software Foundation, either version 3 of the License, or
     8 (at your option) any later version.
     9
     10 This program is distributed in the hope that it will be useful,
     11 but WITHOUT ANY WARRANTY; without even the implied warranty of
     12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     13 GNU General Public License for more details.
     14
     15 You should have received a copy of the GNU General Public License
     16 along with this program.  If not, see <http://www.gnu.org/licenses/>.
     17 */
    218#include "abstractaccount.h"
    319#include "abstractaccount_p.h"
     
    6480
    6581    emit accountEvents()->idChanged(oldId, id);
    66     emit accountEvents()->dataChanged();
     82    emit accountEvents()->dataChanged(IAccount::Id);
    6783    mutex()->unlock();
    6884}
     
    7490    mutex()->lock();
    7591    SET_IF_DIFFERENT(name_, name.trimmed());
    76     emit accountEvents()->dataChanged();
     92    emit accountEvents()->dataChanged(IAccount::Name);
    7793    mutex()->unlock();
    7894}
     
    118134    mutex()->lock();
    119135    SET_IF_DIFFERENT(enabled_, enabled);
    120     emit accountEvents()->dataChanged();
     136    emit accountEvents()->dataChanged(IAccount::Enabled);
    121137
    122138/*    if (!enabled) {
     
    133149    mutex()->lock();
    134150    SET_IF_DIFFERENT(freeSMSCount_, freeSMSCount);
    135     emit accountEvents()->dataChanged();
     151    emit accountEvents()->dataChanged(IAccount::FreeSMSCount);
    136152    mutex()->unlock();
    137153}
  • lib/libdatatypes/src/abstract/abstractaccount.h

    r88 r92  
    11/*
    2  * AbstractAccount.h
    3  *
    4  *  Created on: Jul 9, 2009
    5  *      Author: saemy
     2 smssender - A frontend for fast and easy SMS sending over different gateways.
     3 Copyright (C) 2007-2010, gorrión. See http://smssender.gorrion.ch
     4
     5 This program is free software: you can redistribute it and/or modify
     6 it under the terms of the GNU General Public License as published by
     7 the Free Software Foundation, either version 3 of the License, or
     8 (at your option) any later version.
     9
     10 This program is distributed in the hope that it will be useful,
     11 but WITHOUT ANY WARRANTY; without even the implied warranty of
     12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     13 GNU General Public License for more details.
     14
     15 You should have received a copy of the GNU General Public License
     16 along with this program.  If not, see <http://www.gnu.org/licenses/>.
    617 */
    7 
    818#ifndef ABSTRACTACCOUNT_H_
    919#define ABSTRACTACCOUNT_H_
     
    2737
    2838    /* IAccount */
    29     int         id() const;
    30     void        setId(int id);
     39    int          id() const;
     40    void         setId(int id);
    3141
    32     QString     name() const;
    33     void        setName(const QString& name);
     42    QString      name() const;
     43    void         setName(const QString& name);
    3444
    35     bool        isEnabled() const;
    36     void        setEnabled(bool enabled);
     45    virtual bool isEnabled() const;
     46    void         setEnabled(bool enabled);
    3747
    38     int         freeSMSCount() const;
     48    int          freeSMSCount() const;
    3949
    40     void        initialize();
    41     bool        isInitializing() const;
    42     bool        isInitialized() const;
     50    void         initialize();
     51    bool         isInitializing() const;
     52    virtual bool isInitialized() const;
    4353    Account::InitializationState initializationState() const;
    44     void        cancelInitialization();
    45     void        resetInitialization();
     54    void         cancelInitialization();
     55    void         resetInitialization();
    4656
    47     void        sendSMS(const QString& message, const QSet<SContact*>& recipients);
    48     bool        isSendingCanceled();
    49     void        cancelSMSSending();
     57    void         sendSMS(const QString& message, const QSet<SContact*>& recipients);
     58    bool         isSendingCanceled();
     59    void         cancelSMSSending();
    5060
    5161    virtual SAccountEventMapper* eventMapper() const;
  • lib/libdatatypes/src/abstract/abstractaccount_p.h

    r81 r92  
     1/*
     2 smssender - A frontend for fast and easy SMS sending over different gateways.
     3 Copyright (C) 2007-2010, gorrión. See http://smssender.gorrion.ch
     4
     5 This program is free software: you can redistribute it and/or modify
     6 it under the terms of the GNU General Public License as published by
     7 the Free Software Foundation, either version 3 of the License, or
     8 (at your option) any later version.
     9
     10 This program is distributed in the hope that it will be useful,
     11 but WITHOUT ANY WARRANTY; without even the implied warranty of
     12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     13 GNU General Public License for more details.
     14
     15 You should have received a copy of the GNU General Public License
     16 along with this program.  If not, see <http://www.gnu.org/licenses/>.
     17 */
    118#ifndef ABSTRACTACCOUNT_P_H_
    219#define ABSTRACTACCOUNT_P_H_
  • lib/libdatatypes/src/abstract/abstractgateway.cpp

    r71 r92  
     1/*
     2 smssender - A frontend for fast and easy SMS sending over different gateways.
     3 Copyright (C) 2007-2010, gorrión. See http://smssender.gorrion.ch
     4
     5 This program is free software: you can redistribute it and/or modify
     6 it under the terms of the GNU General Public License as published by
     7 the Free Software Foundation, either version 3 of the License, or
     8 (at your option) any later version.
     9
     10 This program is distributed in the hope that it will be useful,
     11 but WITHOUT ANY WARRANTY; without even the implied warranty of
     12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     13 GNU General Public License for more details.
     14
     15 You should have received a copy of the GNU General Public License
     16 along with this program.  If not, see <http://www.gnu.org/licenses/>.
     17 */
    118#include "abstractgateway.h"
    219
  • lib/libdatatypes/src/abstract/abstractgateway.h

    r71 r92  
    11/*
    2  * AbstractGateway.h
    3  *
    4  *  Created on: Jul 9, 2009
    5  *      Author: saemy
     2 smssender - A frontend for fast and easy SMS sending over different gateways.
     3 Copyright (C) 2007-2010, gorrión. See http://smssender.gorrion.ch
     4
     5 This program is free software: you can redistribute it and/or modify
     6 it under the terms of the GNU General Public License as published by
     7 the Free Software Foundation, either version 3 of the License, or
     8 (at your option) any later version.
     9
     10 This program is distributed in the hope that it will be useful,
     11 but WITHOUT ANY WARRANTY; without even the implied warranty of
     12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     13 GNU General Public License for more details.
     14
     15 You should have received a copy of the GNU General Public License
     16 along with this program.  If not, see <http://www.gnu.org/licenses/>.
    617 */
    7 
    818#ifndef ABSTRACTGATEWAY_H_
    919#define ABSTRACTGATEWAY_H_
  • lib/libdatatypes/src/abstract/abstractloginaccount.cpp

    r81 r92  
     1/*
     2 smssender - A frontend for fast and easy SMS sending over different gateways.
     3 Copyright (C) 2007-2010, gorrión. See http://smssender.gorrion.ch
     4
     5 This program is free software: you can redistribute it and/or modify
     6 it under the terms of the GNU General Public License as published by
     7 the Free Software Foundation, either version 3 of the License, or
     8 (at your option) any later version.
     9
     10 This program is distributed in the hope that it will be useful,
     11 but WITHOUT ANY WARRANTY; without even the implied warranty of
     12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     13 GNU General Public License for more details.
     14
     15 You should have received a copy of the GNU General Public License
     16 along with this program.  If not, see <http://www.gnu.org/licenses/>.
     17 */
    118#include "abstractloginaccount.h"
    219
     
    3249void AbstractLoginAccount::setUsername(const QString& username){
    3350    SET_IF_DIFFERENT(username_, username.trimmed());
    34     emit accountEvents()->dataChanged();
     51    emit accountEvents()->dataChanged(AbstractLoginAccount::Username);
    3552}
    3653
     
    4158void AbstractLoginAccount::setPassword(const QString& password) {
    4259    SET_IF_DIFFERENT(password_, password.trimmed());
    43     emit accountEvents()->dataChanged();
     60    emit accountEvents()->dataChanged(AbstractLoginAccount::Password);
    4461}
    4562
  • lib/libdatatypes/src/abstract/abstractloginaccount.h

    r81 r92  
    11/*
    2  * AbstractAccount.h
    3  *
    4  *  Created on: Jul 9, 2009
    5  *      Author: saemy
     2 smssender - A frontend for fast and easy SMS sending over different gateways.
     3 Copyright (C) 2007-2010, gorrión. See http://smssender.gorrion.ch
     4
     5 This program is free software: you can redistribute it and/or modify
     6 it under the terms of the GNU General Public License as published by
     7 the Free Software Foundation, either version 3 of the License, or
     8 (at your option) any later version.
     9
     10 This program is distributed in the hope that it will be useful,
     11 but WITHOUT ANY WARRANTY; without even the implied warranty of
     12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     13 GNU General Public License for more details.
     14
     15 You should have received a copy of the GNU General Public License
     16 along with this program.  If not, see <http://www.gnu.org/licenses/>.
    617 */
    7 
    818#ifndef ABSTRACTLOGINACCOUNT_H_
    919#define ABSTRACTLOGINACCOUNT_H_
     
    2535class AbstractLoginAccount: public AbstractAccount {
    2636    Q_OBJECT
     37
     38public:
     39    enum Property {
     40        Username = IAccount::LastProperty+1,
     41        Password = Username + 1,
     42
     43        LastProperty = Password
     44    };
    2745
    2846public:
  • lib/libdatatypes/src/abstract/abstractlogingateway.cpp

    r71 r92  
     1/*
     2 smssender - A frontend for fast and easy SMS sending over different gateways.
     3 Copyright (C) 2007-2010, gorrión. See http://smssender.gorrion.ch
     4
     5 This program is free software: you can redistribute it and/or modify
     6 it under the terms of the GNU General Public License as published by
     7 the Free Software Foundation, either version 3 of the License, or
     8 (at your option) any later version.
     9
     10 This program is distributed in the hope that it will be useful,
     11 but WITHOUT ANY WARRANTY; without even the implied warranty of
     12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     13 GNU General Public License for more details.
     14
     15 You should have received a copy of the GNU General Public License
     16 along with this program.  If not, see <http://www.gnu.org/licenses/>.
     17 */
    118#include "abstractlogingateway.h"
    219
  • lib/libdatatypes/src/abstract/abstractlogingateway.h

    r71 r92  
    11/*
    2  * AbstractAccount.h
    3  *
    4  *  Created on: Jul 9, 2009
    5  *      Author: saemy
     2 smssender - A frontend for fast and easy SMS sending over different gateways.
     3 Copyright (C) 2007-2010, gorrión. See http://smssender.gorrion.ch
     4
     5 This program is free software: you can redistribute it and/or modify
     6 it under the terms of the GNU General Public License as published by
     7 the Free Software Foundation, either version 3 of the License, or
     8 (at your option) any later version.
     9
     10 This program is distributed in the hope that it will be useful,
     11 but WITHOUT ANY WARRANTY; without even the implied warranty of
     12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     13 GNU General Public License for more details.
     14
     15 You should have received a copy of the GNU General Public License
     16 along with this program.  If not, see <http://www.gnu.org/licenses/>.
    617 */
    7 
    818#ifndef ABSTRACTLOGINGATEWAY_H_
    919#define ABSTRACTLOGINGATEWAY_H_
  • lib/libdatatypes/src/abstract/persistence/abstractaccountstorageofficer.cpp

    r79 r92  
     1/*
     2 smssender - A frontend for fast and easy SMS sending over different gateways.
     3 Copyright (C) 2007-2010, gorrión. See http://smssender.gorrion.ch
     4
     5 This program is free software: you can redistribute it and/or modify
     6 it under the terms of the GNU General Public License as published by
     7 the Free Software Foundation, either version 3 of the License, or
     8 (at your option) any later version.
     9
     10 This program is distributed in the hope that it will be useful,
     11 but WITHOUT ANY WARRANTY; without even the implied warranty of
     12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     13 GNU General Public License for more details.
     14
     15 You should have received a copy of the GNU General Public License
     16 along with this program.  If not, see <http://www.gnu.org/licenses/>.
     17 */
    118#include "abstractaccountstorageofficer.h"
    219
     
    623#include <QSqlError>
    724
    8 //#include <typeconvert.h>
    925#include <exceptions/persistence/storageexceptions.h>
    1026
  • lib/libdatatypes/src/abstract/persistence/abstractaccountstorageofficer.h

    r71 r92  
    11/*
    2  * AbstractAccountStorageOfficer.h
    3  *
    4  *  Created on: Jul 9, 2009
    5  *      Author: saemy
     2 smssender - A frontend for fast and easy SMS sending over different gateways.
     3 Copyright (C) 2007-2010, gorrión. See http://smssender.gorrion.ch
     4
     5 This program is free software: you can redistribute it and/or modify
     6 it under the terms of the GNU General Public License as published by
     7 the Free Software Foundation, either version 3 of the License, or
     8 (at your option) any later version.
     9
     10 This program is distributed in the hope that it will be useful,
     11 but WITHOUT ANY WARRANTY; without even the implied warranty of
     12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     13 GNU General Public License for more details.
     14
     15 You should have received a copy of the GNU General Public License
     16 along with this program.  If not, see <http://www.gnu.org/licenses/>.
    617 */
    7 
    818#ifndef ABSTRACTACCOUNTSTORAGEOFFICER_H_
    919#define ABSTRACTACCOUNTSTORAGEOFFICER_H_
     
    2939    virtual IAccount* account() const;
    3040
    31     virtual QString getNamespace() const;
     41    QString getNamespace() const;
    3242
    3343private:
  • lib/libdatatypes/src/abstract/persistence/abstractloginaccountstorageofficer.cpp

    r71 r92  
     1/*
     2 smssender - A frontend for fast and easy SMS sending over different gateways.
     3 Copyright (C) 2007-2010, gorrión. See http://smssender.gorrion.ch
     4
     5 This program is free software: you can redistribute it and/or modify
     6 it under the terms of the GNU General Public License as published by
     7 the Free Software Foundation, either version 3 of the License, or
     8 (at your option) any later version.
     9
     10 This program is distributed in the hope that it will be useful,
     11 but WITHOUT ANY WARRANTY; without even the implied warranty of
     12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     13 GNU General Public License for more details.
     14
     15 You should have received a copy of the GNU General Public License
     16 along with this program.  If not, see <http://www.gnu.org/licenses/>.
     17 */
    118#include "abstractloginaccountstorageofficer.h"
    219
  • lib/libdatatypes/src/abstract/persistence/abstractloginaccountstorageofficer.h

    r71 r92  
    11/*
    2  * AbstractLoginStorageOfficer.h
    3  *
    4  *  Created on: Jul 9, 2009
    5  *      Author: saemy
     2 smssender - A frontend for fast and easy SMS sending over different gateways.
     3 Copyright (C) 2007-2010, gorrión. See http://smssender.gorrion.ch
     4
     5 This program is free software: you can redistribute it and/or modify
     6 it under the terms of the GNU General Public License as published by
     7 the Free Software Foundation, either version 3 of the License, or
     8 (at your option) any later version.
     9
     10 This program is distributed in the hope that it will be useful,
     11 but WITHOUT ANY WARRANTY; without even the implied warranty of
     12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     13 GNU General Public License for more details.
     14
     15 You should have received a copy of the GNU General Public License
     16 along with this program.  If not, see <http://www.gnu.org/licenses/>.
    617 */
    7 
    818#ifndef ABSTRACTLOGINACCOUNTSTORAGEOFFICER_H_
    919#define ABSTRACTLOGINACCOUNTSTORAGEOFFICER_H_
  • lib/libdatatypes/src/abstract/persistence/abstractstorageofficer.cpp

    r71 r92  
     1/*
     2 smssender - A frontend for fast and easy SMS sending over different gateways.
     3 Copyright (C) 2007-2010, gorrión. See http://smssender.gorrion.ch
     4
     5 This program is free software: you can redistribute it and/or modify
     6 it under the terms of the GNU General Public License as published by
     7 the Free Software Foundation, either version 3 of the License, or
     8 (at your option) any later version.
     9
     10 This program is distributed in the hope that it will be useful,
     11 but WITHOUT ANY WARRANTY; without even the implied warranty of
     12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     13 GNU General Public License for more details.
     14
     15 You should have received a copy of the GNU General Public License
     16 along with this program.  If not, see <http://www.gnu.org/licenses/>.
     17 */
    118#include "abstractstorageofficer.h"
    219
  • lib/libdatatypes/src/abstract/persistence/abstractstorageofficer.h

    r71 r92  
    11/*
    2  * AbstractStorageOfficer.h
    3  *
    4  *  Created on: Jul 9, 2009
    5  *      Author: saemy
     2 smssender - A frontend for fast and easy SMS sending over different gateways.
     3 Copyright (C) 2007-2010, gorrión. See http://smssender.gorrion.ch
     4
     5 This program is free software: you can redistribute it and/or modify
     6 it under the terms of the GNU General Public License as published by
     7 the Free Software Foundation, either version 3 of the License, or
     8 (at your option) any later version.
     9
     10 This program is distributed in the hope that it will be useful,
     11 but WITHOUT ANY WARRANTY; without even the implied warranty of
     12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     13 GNU General Public License for more details.
     14
     15 You should have received a copy of the GNU General Public License
     16 along with this program.  If not, see <http://www.gnu.org/licenses/>.
    617 */
    7 
    818#ifndef ABSTRACTSTORAGEOFFICER_H_
    919#define ABSTRACTSTORAGEOFFICER_H_
  • lib/libdatatypes/src/eventmappers/eventinterfaces.h

    r88 r92  
    11/*
    2  * eventinterfaces.h
    3  *
    4  *  Created on: Jan 16, 2010
    5  *      Author: saemy
     2 smssender - A frontend for fast and easy SMS sending over different gateways.
     3 Copyright (C) 2007-2010, gorrión. See http://smssender.gorrion.ch
     4
     5 This program is free software: you can redistribute it and/or modify
     6 it under the terms of the GNU General Public License as published by
     7 the Free Software Foundation, either version 3 of the License, or
     8 (at your option) any later version.
     9
     10 This program is distributed in the hope that it will be useful,
     11 but WITHOUT ANY WARRANTY; without even the implied warranty of
     12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     13 GNU General Public License for more details.
     14
     15 You should have received a copy of the GNU General Public License
     16 along with this program.  If not, see <http://www.gnu.org/licenses/>.
    617 */
    7 
    818#ifndef EVENTINTERFACES_H_
    919#define EVENTINTERFACES_H_
     
    3343
    3444public:
     45    virtual void dataChanged(int property) =0;
     46
    3547    virtual void initStateChanged() =0;
    3648    virtual void initDone(Account::InitializationResult result) =0;
  • lib/libdatatypes/src/eventmappers/saccounteventmapper.cpp

    r87 r92  
     1/*
     2 smssender - A frontend for fast and easy SMS sending over different gateways.
     3 Copyright (C) 2007-2010, gorrión. See http://smssender.gorrion.ch
     4
     5 This program is free software: you can redistribute it and/or modify
     6 it under the terms of the GNU General Public License as published by
     7 the Free Software Foundation, either version 3 of the License, or
     8 (at your option) any later version.
     9
     10 This program is distributed in the hope that it will be useful,
     11 but WITHOUT ANY WARRANTY; without even the implied warranty of
     12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     13 GNU General Public License for more details.
     14
     15 You should have received a copy of the GNU General Public License
     16 along with this program.  If not, see <http://www.gnu.org/licenses/>.
     17 */
    118#include "saccounteventmapper.h"
    219
  • lib/libdatatypes/src/eventmappers/saccounteventmapper.h

    r88 r92  
    11/*
    2  * AccountEventMapper.h
    3  *
    4  *  Created on: Jan 16, 2010
    5  *      Author: saemy
     2 smssender - A frontend for fast and easy SMS sending over different gateways.
     3 Copyright (C) 2007-2010, gorrión. See http://smssender.gorrion.ch
     4
     5 This program is free software: you can redistribute it and/or modify
     6 it under the terms of the GNU General Public License as published by
     7 the Free Software Foundation, either version 3 of the License, or
     8 (at your option) any later version.
     9
     10 This program is distributed in the hope that it will be useful,
     11 but WITHOUT ANY WARRANTY; without even the implied warranty of
     12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     13 GNU General Public License for more details.
     14
     15 You should have received a copy of the GNU General Public License
     16 along with this program.  If not, see <http://www.gnu.org/licenses/>.
    617 */
    7 
    818#ifndef SACCOUNTEVENTMAPPER_H_
    919#define SACCOUNTEVENTMAPPER_H_
     
    3141    void idChanged(int oldId, int newId);
    3242    void dataChanged();
     43    void dataChanged(int property);
    3344
    3445    void initStateChanged();
  • lib/libdatatypes/src/eventmappers/scontacteventmapper.h

    r80 r92  
    11/*
    2  * contacteventmapper.h
    3  *
    4  *  Created on: Jan 17, 2010
    5  *      Author: saemy
     2 smssender - A frontend for fast and easy SMS sending over different gateways.
     3 Copyright (C) 2007-2010, gorrión. See http://smssender.gorrion.ch
     4
     5 This program is free software: you can redistribute it and/or modify
     6 it under the terms of the GNU General Public License as published by
     7 the Free Software Foundation, either version 3 of the License, or
     8 (at your option) any later version.
     9
     10 This program is distributed in the hope that it will be useful,
     11 but WITHOUT ANY WARRANTY; without even the implied warranty of
     12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     13 GNU General Public License for more details.
     14
     15 You should have received a copy of the GNU General Public License
     16 along with this program.  If not, see <http://www.gnu.org/licenses/>.
    617 */
    7 
    818#ifndef SCONTACTEVENTMAPPER_H_
    919#define SCONTACTEVENTMAPPER_H_
  • lib/libdatatypes/src/eventmappers/sgroupeventmapper.h

    r80 r92  
    11/*
    2  * groupeventmapper.h
    3  *
    4  *  Created on: Jan 17, 2010
    5  *      Author: saemy
     2 smssender - A frontend for fast and easy SMS sending over different gateways.
     3 Copyright (C) 2007-2010, gorrión. See http://smssender.gorrion.ch
     4
     5 This program is free software: you can redistribute it and/or modify
     6 it under the terms of the GNU General Public License as published by
     7 the Free Software Foundation, either version 3 of the License, or
     8 (at your option) any later version.
     9
     10 This program is distributed in the hope that it will be useful,
     11 but WITHOUT ANY WARRANTY; without even the implied warranty of
     12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     13 GNU General Public License for more details.
     14
     15 You should have received a copy of the GNU General Public License
     16 along with this program.  If not, see <http://www.gnu.org/licenses/>.
    617 */
    7 
    818#ifndef SGROUPEVENTMAPPER_H_
    919#define SGROUPEVENTMAPPER_H_
  • lib/libdatatypes/src/eventmappers/sloginaccounteventmapper.h

    r72 r92  
    11/*
    2  * loginaccounteventmapper.h
    3  *
    4  *  Created on: Jan 16, 2010
    5  *      Author: saemy
     2 smssender - A frontend for fast and easy SMS sending over different gateways.
     3 Copyright (C) 2007-2010, gorrión. See http://smssender.gorrion.ch
     4
     5 This program is free software: you can redistribute it and/or modify
     6 it under the terms of the GNU General Public License as published by
     7 the Free Software Foundation, either version 3 of the License, or
     8 (at your option) any later version.
     9
     10 This program is distributed in the hope that it will be useful,
     11 but WITHOUT ANY WARRANTY; without even the implied warranty of
     12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     13 GNU General Public License for more details.
     14
     15 You should have received a copy of the GNU General Public License
     16 along with this program.  If not, see <http://www.gnu.org/licenses/>.
    617 */
    7 
    818#ifndef SLOGINACCOUNTEVENTMAPPER_H_
    919#define SLOGINACCOUNTEVENTMAPPER_H_
  • lib/libdatatypes/src/exceptions/eexception.cpp

    r88 r92  
    11/*
    2  * eexception.cpp
    3  *
    4  *  Created on: Feb 9, 2010
    5  *      Author: saemy
     2 smssender - A frontend for fast and easy SMS sending over different gateways.
     3 Copyright (C) 2007-2010, gorrión. See http://smssender.gorrion.ch
     4
     5 This program is free software: you can redistribute it and/or modify
     6 it under the terms of the GNU General Public License as published by
     7 the Free Software Foundation, either version 3 of the License, or
     8 (at your option) any later version.
     9
     10 This program is distributed in the hope that it will be useful,
     11 but WITHOUT ANY WARRANTY; without even the implied warranty of
     12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     13 GNU General Public License for more details.
     14
     15 You should have received a copy of the GNU General Public License
     16 along with this program.  If not, see <http://www.gnu.org/licenses/>.
    617 */
    7 
    818#include "eexception.h"
    919
     
    131141    msg         = msg.trimmed().remove(QRegExp("\\n$"));
    132142
    133     #ifdef DEBUG
     143    #ifdef QT_DEBUG
    134144    QString debugInfoStr = debugInfos().join("\n\t").trimmed();
    135145    if (debugInfoStr != "") {
    136         msg += " [\n"
     146        msg += QString(" [\n")
    137147               + "\t" + debugInfoStr + "\n"
    138148               + "]";
  • lib/libdatatypes/src/exceptions/eexception.h

    r80 r92  
    11/*
    2  * EException.h
    3  *
    4  *  Created on: Jan 4, 2010
    5  *      Author: saemy
     2 smssender - A frontend for fast and easy SMS sending over different gateways.
     3 Copyright (C) 2007-2010, gorrión. See http://smssender.gorrion.ch
     4
     5 This program is free software: you can redistribute it and/or modify
     6 it under the terms of the GNU General Public License as published by
     7 the Free Software Foundation, either version 3 of the License, or
     8 (at your option) any later version.
     9
     10 This program is distributed in the hope that it will be useful,
     11 but WITHOUT ANY WARRANTY; without even the implied warranty of
     12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     13 GNU General Public License for more details.
     14
     15 You should have received a copy of the GNU General Public License
     16 along with this program.  If not, see <http://www.gnu.org/licenses/>.
    617 */
    7 
    818#ifndef EEXCEPTION_H_
    919#define EEXCEPTION_H_
  • lib/libdatatypes/src/exceptions/elibraryloadexception.cpp

    r88 r92  
    11/*
    2  * elibraryloadexception.cpp
    3  *
    4  *  Created on: Mar 19, 2010
    5  *      Author: saemy
     2 smssender - A frontend for fast and easy SMS sending over different gateways.
     3 Copyright (C) 2007-2010, gorrión. See http://smssender.gorrion.ch
     4
     5 This program is free software: you can redistribute it and/or modify
     6 it under the terms of the GNU General Public License as published by
     7 the Free Software Foundation, either version 3 of the License, or
     8 (at your option) any later version.
     9
     10 This program is distributed in the hope that it will be useful,
     11 but WITHOUT ANY WARRANTY; without even the implied warranty of
     12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     13 GNU General Public License for more details.
     14
     15 You should have received a copy of the GNU General Public License
     16 along with this program.  If not, see <http://www.gnu.org/licenses/>.
    617 */
    7 
    818#include "elibraryloadexception.h"
    919
  • lib/libdatatypes/src/exceptions/elibraryloadexception.h

    r79 r92  
    11/*
    2  * ELibraryLoadException.h
    3  *
    4  *  Created on: Jan 4, 2010
    5  *      Author: saemy
     2 smssender - A frontend for fast and easy SMS sending over different gateways.
     3 Copyright (C) 2007-2010, gorrión. See http://smssender.gorrion.ch
     4
     5 This program is free software: you can redistribute it and/or modify
     6 it under the terms of the GNU General Public License as published by
     7 the Free Software Foundation, either version 3 of the License, or
     8 (at your option) any later version.
     9
     10 This program is distributed in the hope that it will be useful,
     11 but WITHOUT ANY WARRANTY; without even the implied warranty of
     12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     13 GNU General Public License for more details.
     14
     15 You should have received a copy of the GNU General Public License
     16 along with this program.  If not, see <http://www.gnu.org/licenses/>.
    617 */
    7 
    8 #ifndef ELIBRARYLOADEXCEPTION_H_
    9 #define ELIBRARYLOADEXCEPTION_H_
     18#ifndef LIBRARY_ELIBRARYLOADEXCEPTION_H_
     19#define LIBRARY_ELIBRARYLOADEXCEPTION_H_
    1020
    1121#include <QString>
     
    1424
    1525namespace Library {
    16     class SMAKE_VISIBLE ELoadException: public EException {
    17     public:
    18         enum Purpose {
    19             FileNotFound,
    20             InvalidLibraryFile,
    21             VersionMismatch,
    22             Other,
    23             Unknown
    24         };
    2526
    26         ELoadException();
    27         ELoadException(const QString& message);
    28         ELoadException(const Purpose& purpose);
    29         ELoadException(const ELoadException& other);
    30         virtual void raise();
     27class SMAKE_VISIBLE ELoadException: public EException {
     28public:
     29    enum Purpose {
     30        FileNotFound,
     31        InvalidLibraryFile,
     32        VersionMismatch,
     33        Other,
     34        Unknown
     35    };
    3136
    32         Purpose purpose() const throw();
    33         virtual QString toString() const throw();
     37    ELoadException();
     38    ELoadException(const QString& message);
     39    ELoadException(const Purpose& purpose);
     40    ELoadException(const ELoadException& other);
     41    virtual void raise();
    3442
    35     protected:
    36         virtual ELoadException* createClonedInstance() const throw();
     43    Purpose purpose() const throw();
     44    virtual QString toString() const throw();
    3745
    38     private:
    39         Purpose purpose_;
    40     };
     46protected:
     47    virtual ELoadException* createClonedInstance() const throw();
     48
     49private:
     50    Purpose purpose_;
     51};
     52
    4153}
    4254
    43 
    44 #endif /* ELIBRARYLOADEXCEPTION_H_ */
     55#endif /* LIBRARY_ELIBRARYLOADEXCEPTION_H_ */
  • lib/libdatatypes/src/exceptions/eloginaccountloginexception.cpp

    r79 r92  
    11/*
    2  * eloginaccountloginexception.cpp
    3  *
    4  *  Created on: Mar 19, 2010
    5  *      Author: saemy
     2 smssender - A frontend for fast and easy SMS sending over different gateways.
     3 Copyright (C) 2007-2010, gorrión. See http://smssender.gorrion.ch
     4
     5 This program is free software: you can redistribute it and/or modify
     6 it under the terms of the GNU General Public License as published by
     7 the Free Software Foundation, either version 3 of the License, or
     8 (at your option) any later version.
     9
     10 This program is distributed in the hope that it will be useful,
     11 but WITHOUT ANY WARRANTY; without even the implied warranty of
     12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     13 GNU General Public License for more details.
     14
     15 You should have received a copy of the GNU General Public License
     16 along with this program.  If not, see <http://www.gnu.org/licenses/>.
    617 */
    7 
    818#include "eloginaccountloginexception.h"
    919
  • lib/libdatatypes/src/exceptions/eloginaccountloginexception.h

    r79 r92  
    11/*
    2  * ELoginAccountLoginException.h
    3  *
    4  *  Created on: Jan 4, 2010
    5  *      Author: saemy
     2 smssender - A frontend for fast and easy SMS sending over different gateways.
     3 Copyright (C) 2007-2010, gorrión. See http://smssender.gorrion.ch
     4
     5 This program is free software: you can redistribute it and/or modify
     6 it under the terms of the GNU General Public License as published by
     7 the Free Software Foundation, either version 3 of the License, or
     8 (at your option) any later version.
     9
     10 This program is distributed in the hope that it will be useful,
     11 but WITHOUT ANY WARRANTY; without even the implied warranty of
     12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     13 GNU General Public License for more details.
     14
     15 You should have received a copy of the GNU General Public License
     16 along with this program.  If not, see <http://www.gnu.org/licenses/>.
    617 */
    7 
    8 #ifndef ELOGINACCOUNTLOGINEXCEPTION_H_
    9 #define ELOGINACCOUNTLOGINEXCEPTION_H_
     18#ifndef LOGINACCOUNT_ELOGINACCOUNTLOGINEXCEPTION_H_
     19#define LOGINACCOUNT_ELOGINACCOUNTLOGINEXCEPTION_H_
    1020
    1121#include <QString>
     
    1525namespace LoginAccount {
    1626
    17     class SMAKE_VISIBLE ELoginException: public EException {
    18     public:
    19         enum Purpose {
    20             RequestError,
    21             InvalidLoginData,
    22             Other,
    23             Unknown
    24         };
     27class SMAKE_VISIBLE ELoginException: public EException {
     28public:
     29    enum Purpose {
     30        RequestError,
     31        InvalidLoginData,
     32        Other,
     33        Unknown
     34    };
    2535
    26         ELoginException();
    27         ELoginException(const QString& msg);
    28         ELoginException(const Purpose& purpose);
    29         ELoginException(const ELoginException& other);
    30         virtual void raise();
     36    ELoginException();
     37    ELoginException(const QString& msg);
     38    ELoginException(const Purpose& purpose);
     39    ELoginException(const ELoginException& other);
     40    virtual void raise();
    3141
    32         Purpose purpose() const throw();
     42    Purpose purpose() const throw();
    3343
    34         virtual QString toString() const throw();
     44    virtual QString toString() const throw();
    3545
    36     protected:
    37         virtual ELoginException* createClonedInstance() const throw();
     46protected:
     47    virtual ELoginException* createClonedInstance() const throw();
    3848
    39     private:
    40         Purpose purpose_;
    41     };
     49private:
     50    Purpose purpose_;
     51};
     52
    4253}
    4354
    44 #endif /* ELOGINACCOUNTLOGINEXCEPTION_H_ */
     55#endif /* LOGINACCOUNT_ELOGINACCOUNTLOGINEXCEPTION_H_ */
  • lib/libdatatypes/src/exceptions/eparseexception.cpp

    r79 r92  
    11/*
    2  * eparseexception.cpp
    3  *
    4  *  Created on: Mar 19, 2010
    5  *      Author: saemy
     2 smssender - A frontend for fast and easy SMS sending over different gateways.
     3 Copyright (C) 2007-2010, gorrión. See http://smssender.gorrion.ch
     4
     5 This program is free software: you can redistribute it and/or modify
     6 it under the terms of the GNU General Public License as published by
     7 the Free Software Foundation, either version 3 of the License, or
     8 (at your option) any later version.
     9
     10 This program is distributed in the hope that it will be useful,
     11 but WITHOUT ANY WARRANTY; without even the implied warranty of
     12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     13 GNU General Public License for more details.
     14
     15 You should have received a copy of the GNU General Public License
     16 along with this program.  If not, see <http://www.gnu.org/licenses/>.
    617 */
    7 
    818#include "eparseexception.h"
    919
  • lib/libdatatypes/src/exceptions/eparseexception.h

    r79 r92  
    11/*
    2  * EParseException.h
    3  *
    4  *  Created on: Jan 4, 2010
    5  *      Author: saemy
     2 smssender - A frontend for fast and easy SMS sending over different gateways.
     3 Copyright (C) 2007-2010, gorrión. See http://smssender.gorrion.ch
     4
     5 This program is free software: you can redistribute it and/or modify
     6 it under the terms of the GNU General Public License as published by
     7 the Free Software Foundation, either version 3 of the License, or
     8 (at your option) any later version.
     9
     10 This program is distributed in the hope that it will be useful,
     11 but WITHOUT ANY WARRANTY; without even the implied warranty of
     12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     13 GNU General Public License for more details.
     14
     15 You should have received a copy of the GNU General Public License
     16 along with this program.  If not, see <http://www.gnu.org/licenses/>.
    617 */
    7 
    818#ifndef EPARSEEXCEPTION_H_
    919#define EPARSEEXCEPTION_H_
  • lib/libdatatypes/src/exceptions/httpexceptions.cpp

    r79 r92  
    11/*
    2  * httpexceptions.cpp
    3  *
    4  *  Created on: Mar 19, 2010
    5  *      Author: saemy
     2 smssender - A frontend for fast and easy SMS sending over different gateways.
     3 Copyright (C) 2007-2010, gorrión. See http://smssender.gorrion.ch
     4
     5 This program is free software: you can redistribute it and/or modify
     6 it under the terms of the GNU General Public License as published by
     7 the Free Software Foundation, either version 3 of the License, or
     8 (at your option) any later version.
     9
     10 This program is distributed in the hope that it will be useful,
     11 but WITHOUT ANY WARRANTY; without even the implied warranty of
     12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     13 GNU General Public License for more details.
     14
     15 You should have received a copy of the GNU General Public License
     16 along with this program.  If not, see <http://www.gnu.org/licenses/>.
    617 */
    7 
    818#include "httpexceptions.h"
    919
  • lib/libdatatypes/src/exceptions/httpexceptions.h

    r79 r92  
    11/*
    2  * HttpExceptions.h
    3  *
    4  *  Created on: Jan 4, 2010
    5  *      Author: saemy
     2 smssender - A frontend for fast and easy SMS sending over different gateways.
     3 Copyright (C) 2007-2010, gorrión. See http://smssender.gorrion.ch
     4
     5 This program is free software: you can redistribute it and/or modify
     6 it under the terms of the GNU General Public License as published by
     7 the Free Software Foundation, either version 3 of the License, or
     8 (at your option) any later version.
     9
     10 This program is distributed in the hope that it will be useful,
     11 but WITHOUT ANY WARRANTY; without even the implied warranty of
     12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     13 GNU General Public License for more details.
     14
     15 You should have received a copy of the GNU General Public License
     16 along with this program.  If not, see <http://www.gnu.org/licenses/>.
    617 */
    7 
     18#ifndef HTTP_EHTTPEXCEPTIONS_H_
     19#define HTTP_EHTTPEXCEPTIONS_H_
    820
    921#include "eexception.h"
     
    4355    };
    4456}
     57
     58#endif // HTTP_EHTTPEXCEPTIONS_H_
  • lib/libdatatypes/src/exceptions/libraryexceptions.h

    r71 r92  
    11/*
    2  * LibraryExceptions.h
    3  *
    4  *  Created on: Jan 4, 2010
    5  *      Author: saemy
     2 smssender - A frontend for fast and easy SMS sending over different gateways.
     3 Copyright (C) 2007-2010, gorrión. See http://smssender.gorrion.ch
     4
     5 This program is free software: you can redistribute it and/or modify
     6 it under the terms of the GNU General Public License as published by
     7 the Free Software Foundation, either version 3 of the License, or
     8 (at your option) any later version.
     9
     10 This program is distributed in the hope that it will be useful,
     11 but WITHOUT ANY WARRANTY; without even the implied warranty of
     12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     13 GNU General Public License for more details.
     14
     15 You should have received a copy of the GNU General Public License
     16 along with this program.  If not, see <http://www.gnu.org/licenses/>.
    617 */
    7 
    818#include "elibraryloadexception.h"
  • lib/libdatatypes/src/exceptions/loginaccountexceptions.h

    r71 r92  
    11/*
    2  * LoginExceptions.h
    3  *
    4  *  Created on: Jan 4, 2010
    5  *      Author: saemy
     2 smssender - A frontend for fast and easy SMS sending over different gateways.
     3 Copyright (C) 2007-2010, gorrión. See http://smssender.gorrion.ch
     4
     5 This program is free software: you can redistribute it and/or modify
     6 it under the terms of the GNU General Public License as published by
     7 the Free Software Foundation, either version 3 of the License, or
     8 (at your option) any later version.
     9
     10 This program is distributed in the hope that it will be useful,
     11 but WITHOUT ANY WARRANTY; without even the implied warranty of
     12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     13 GNU General Public License for more details.
     14
     15 You should have received a copy of the GNU General Public License
     16 along with this program.  If not, see <http://www.gnu.org/licenses/>.
    617 */
    7 
    818#include "eloginaccountloginexception.h"
  • lib/libdatatypes/src/exceptions/persistence/estoragereadexception.cpp

    r79 r92  
    11/*
    2  * estoragereadexception.cpp
    3  *
    4  *  Created on: Mar 19, 2010
    5  *      Author: saemy
     2 smssender - A frontend for fast and easy SMS sending over different gateways.
     3 Copyright (C) 2007-2010, gorrión. See http://smssender.gorrion.ch
     4
     5 This program is free software: you can redistribute it and/or modify
     6 it under the terms of the GNU General Public License as published by
     7 the Free Software Foundation, either version 3 of the License, or
     8 (at your option) any later version.
     9
     10 This program is distributed in the hope that it will be useful,
     11 but WITHOUT ANY WARRANTY; without even the implied warranty of
     12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     13 GNU General Public License for more details.
     14
     15 You should have received a copy of the GNU General Public License
     16 along with this program.  If not, see <http://www.gnu.org/licenses/>.
    617 */
    7 
    818#include "estoragereadexception.h"
    919
  • lib/libdatatypes/src/exceptions/persistence/estoragereadexception.h

    r79 r92  
    11/*
    2  * EStorageReadException.h
    3  *
    4  *  Created on: Jan 4, 2010
    5  *      Author: saemy
     2 smssender - A frontend for fast and easy SMS sending over different gateways.
     3 Copyright (C) 2007-2010, gorrión. See http://smssender.gorrion.ch
     4
     5 This program is free software: you can redistribute it and/or modify
     6 it under the terms of the GNU General Public License as published by
     7 the Free Software Foundation, either version 3 of the License, or
     8 (at your option) any later version.
     9
     10 This program is distributed in the hope that it will be useful,
     11 but WITHOUT ANY WARRANTY; without even the implied warranty of
     12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     13 GNU General Public License for more details.
     14
     15 You should have received a copy of the GNU General Public License
     16 along with this program.  If not, see <http://www.gnu.org/licenses/>.
    617 */
    7 
    818#ifndef ESTORAGEREADEXCEPTION_H_
    919#define ESTORAGEREADEXCEPTION_H_
  • lib/libdatatypes/src/exceptions/persistence/estoragewriteexception.cpp

    r79 r92  
    11/*
    2  * estoragewriteexception.cpp
    3  *
    4  *  Created on: Mar 19, 2010
    5  *      Author: saemy
     2 smssender - A frontend for fast and easy SMS sending over different gateways.
     3 Copyright (C) 2007-2010, gorrión. See http://smssender.gorrion.ch
     4
     5 This program is free software: you can redistribute it and/or modify
     6 it under the terms of the GNU General Public License as published by
     7 the Free Software Foundation, either version 3 of the License, or
     8 (at your option) any later version.
     9
     10 This program is distributed in the hope that it will be useful,
     11 but WITHOUT ANY WARRANTY; without even the implied warranty of
     12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     13 GNU General Public License for more details.
     14
     15 You should have received a copy of the GNU General Public License
     16 along with this program.  If not, see <http://www.gnu.org/licenses/>.
    617 */
    7 
    818#include "estoragewriteexception.h"
    919
  • lib/libdatatypes/src/exceptions/persistence/estoragewriteexception.h

    r79 r92  
    11/*
    2  * EStorageWriteException.h
    3  *
    4  *  Created on: Jan 4, 2010
    5  *      Author: saemy
     2 smssender - A frontend for fast and easy SMS sending over different gateways.
     3 Copyright (C) 2007-2010, gorrión. See http://smssender.gorrion.ch
     4
     5 This program is free software: you can redistribute it and/or modify
     6 it under the terms of the GNU General Public License as published by
     7 the Free Software Foundation, either version 3 of the License, or
     8 (at your option) any later version.
     9
     10 This program is distributed in the hope that it will be useful,
     11 but WITHOUT ANY WARRANTY; without even the implied warranty of
     12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     13 GNU General Public License for more details.
     14
     15 You should have received a copy of the GNU General Public License
     16 along with this program.  If not, see <http://www.gnu.org/licenses/>.
    617 */
    7 
    818#ifndef ESTORAGEWRITEEXCEPTION_H_
    919#define ESTORAGEWRITEEXCEPTION_H_
  • lib/libdatatypes/src/exceptions/persistence/storageexceptions.h

    r71 r92  
    11/*
    2  * StorageExceptions.h
    3  *
    4  *  Created on: Jan 4, 2010
    5  *      Author: saemy
     2 smssender - A frontend for fast and easy SMS sending over different gateways.
     3 Copyright (C) 2007-2010, gorrión. See http://smssender.gorrion.ch
     4
     5 This program is free software: you can redistribute it and/or modify
     6 it under the terms of the GNU General Public License as published by
     7 the Free Software Foundation, either version 3 of the License, or
     8 (at your option) any later version.
     9
     10 This program is distributed in the hope that it will be useful,
     11 but WITHOUT ANY WARRANTY; without even the implied warranty of
     12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     13 GNU General Public License for more details.
     14
     15 You should have received a copy of the GNU General Public License
     16 along with this program.  If not, see <http://www.gnu.org/licenses/>.
    617 */
    7 
    818#include "estoragereadexception.h"
    919#include "estoragewriteexception.h"
  • lib/libdatatypes/src/exceptions/stdexceptions.h

    r71 r92  
    11/*
    2  * StdExceptions.h
    3  *
    4  *  Created on: Jan 4, 2010
    5  *      Author: saemy
     2 smssender - A frontend for fast and easy SMS sending over different gateways.
     3 Copyright (C) 2007-2010, gorrión. See http://smssender.gorrion.ch
     4
     5 This program is free software: you can redistribute it and/or modify
     6 it under the terms of the GNU General Public License as published by
     7 the Free Software Foundation, either version 3 of the License, or
     8 (at your option) any later version.
     9
     10 This program is distributed in the hope that it will be useful,
     11 but WITHOUT ANY WARRANTY; without even the implied warranty of
     12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     13 GNU General Public License for more details.
     14
     15 You should have received a copy of the GNU General Public License
     16 along with this program.  If not, see <http://www.gnu.org/licenses/>.
    617 */
    7 
    818#include "eexception.h"
    919#include "eparseexception.h"
  • lib/libdatatypes/src/interfaces/iaccount.cpp

    r88 r92  
    11/*
    2  * iaccount.cpp
    3  *
    4  *  Created on: Aug 24, 2009
    5  *      Author: saemy
     2 smssender - A frontend for fast and easy SMS sending over different gateways.
     3 Copyright (C) 2007-2010, gorrión. See http://smssender.gorrion.ch
     4
     5 This program is free software: you can redistribute it and/or modify
     6 it under the terms of the GNU General Public License as published by
     7 the Free Software Foundation, either version 3 of the License, or
     8 (at your option) any later version.
     9
     10 This program is distributed in the hope that it will be useful,
     11 but WITHOUT ANY WARRANTY; without even the implied warranty of
     12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     13 GNU General Public License for more details.
     14
     15 You should have received a copy of the GNU General Public License
     16 along with this program.  If not, see <http://www.gnu.org/licenses/>.
    617 */
    7 
    818#include "iaccount.h"
    919
  • lib/libdatatypes/src/interfaces/iaccount.h

    r87 r92  
    11/*
    2  * iaccount.h
    3  *
    4  *  Created on: Apr 29, 2009
    5  *      Author: saemy
     2 smssender - A frontend for fast and easy SMS sending over different gateways.
     3 Copyright (C) 2007-2010, gorrión. See http://smssender.gorrion.ch
     4
     5 This program is free software: you can redistribute it and/or modify
     6 it under the terms of the GNU General Public License as published by
     7 the Free Software Foundation, either version 3 of the License, or
     8 (at your option) any later version.
     9
     10 This program is distributed in the hope that it will be useful,
     11 but WITHOUT ANY WARRANTY; without even the implied warranty of
     12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     13 GNU General Public License for more details.
     14
     15 You should have received a copy of the GNU General Public License
     16 along with this program.  If not, see <http://www.gnu.org/licenses/>.
    617 */
    7 
    818#ifndef IACCOUNT_H_
    919#define IACCOUNT_H_
     
    2737
    2838public:
     39    enum Property {
     40        Id           = 0,
     41        Name         = 1,
     42        Enabled      = 2,
     43        FreeSMSCount = 3,
     44
     45        LastProperty = FreeSMSCount
     46    };
     47
     48public:
    2949    virtual IGateway* gateway() const =0;
    30 
    31 //    virtual QWidget   getSettingsFrame() =0;
    3250
    3351    virtual int       id() const =0;
  • lib/libdatatypes/src/interfaces/igateway.h

    r80 r92  
    11/*
    2  * igateway.h
    3  *
    4  *  Created on: Jul 9, 2009
    5  *      Author: saemy
     2 smssender - A frontend for fast and easy SMS sending over different gateways.
     3 Copyright (C) 2007-2010, gorrión. See http://smssender.gorrion.ch
     4
     5 This program is free software: you can redistribute it and/or modify
     6 it under the terms of the GNU General Public License as published by
     7 the Free Software Foundation, either version 3 of the License, or
     8 (at your option) any later version.
     9
     10 This program is distributed in the hope that it will be useful,
     11 but WITHOUT ANY WARRANTY; without even the implied warranty of
     12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     13 GNU General Public License for more details.
     14
     15 You should have received a copy of the GNU General Public License
     16 along with this program.  If not, see <http://www.gnu.org/licenses/>.
    617 */
    7 
    818#ifndef IGATEWAY_H_
    919#define IGATEWAY_H_
  • lib/libdatatypes/src/interfaces/iinterface.h

    r71 r92  
    11/*
    2  * iinterface.h
    3  *
    4  *  Created on: May 2, 2009
    5  *      Author: saemy
     2 smssender - A frontend for fast and easy SMS sending over different gateways.
     3 Copyright (C) 2007-2010, gorrión. See http://smssender.gorrion.ch
     4
     5 This program is free software: you can redistribute it and/or modify
     6 it under the terms of the GNU General Public License as published by
     7 the Free Software Foundation, either version 3 of the License, or
     8 (at your option) any later version.
     9
     10 This program is distributed in the hope that it will be useful,
     11 but WITHOUT ANY WARRANTY; without even the implied warranty of
     12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     13 GNU General Public License for more details.
     14
     15 You should have received a copy of the GNU General Public License
     16 along with this program.  If not, see <http://www.gnu.org/licenses/>.
    617 */
    7 
    818#ifndef IINTERFACE_H_
    919#define IINTERFACE_H_
  • lib/libdatatypes/src/interfaces/ilibrary.h

    r89 r92  
    11/*
    2   smssender - A frontend for fast and easy SMS sending over different gateways.
    3   Copyright (C) 2007-2010, gorrión. See http://smssender.gorrion.ch
     2 smssender - A frontend for fast and easy SMS sending over different gateways.
     3 Copyright (C) 2007-2010, gorrión. See http://smssender.gorrion.ch
    44
    5   This program is free software: you can redistribute it and/or modify
    6   it under the terms of the GNU General Public License as published by
    7   the Free Software Foundation, either version 3 of the License, or
    8   (at your option) any later version.
     5 This program is free software: you can redistribute it and/or modify
     6 it under the terms of the GNU General Public License as published by
     7 the Free Software Foundation, either version 3 of the License, or
     8 (at your option) any later version.
    99
    10   This program is distributed in the hope that it will be useful,
    11   but WITHOUT ANY WARRANTY; without even the implied warranty of
    12   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    13   GNU General Public License for more details.
     10 This program is distributed in the hope that it will be useful,
     11 but WITHOUT ANY WARRANTY; without even the implied warranty of
     12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     13 GNU General Public License for more details.
    1414
    15   You should have received a copy of the GNU General Public License
    16   along with this program.  If not, see <http://www.gnu.org/licenses/>.
    17 */
     15 You should have received a copy of the GNU General Public License
     16 along with this program.  If not, see <http://www.gnu.org/licenses/>.
     17 */
    1818#ifndef ILIBRARY_H_
    1919#define ILIBRARY_H_
     
    3030#include "igateway.h"
    3131
    32 // The major version of the library which is required to load it.
    33 // Increase this, if something in the interfaces has changed.
    34 const int LIBRARY_COMPATIBILITY_VERSION = 1;
    35 
    3632class ILibrary: public IInterface {
    3733    Q_INTERFACES(IInterface)
    3834
    3935public:
     36    const static int COMPATIBILITY_VERSION;
     37
     38public:
    4039    virtual QString            identificationKey() const =0;
    41     virtual SVersion           version() const =0; // To prevent loading of too old/new libraries
     40    virtual SVersion           version() const =0;
     41    virtual int                compatibilityVersion() const =0; // To prevent loading of too old/new libraries
    4242
    4343    virtual QSet<QTranslator*> getTranslators() const =0;
  • lib/libdatatypes/src/interfaces/ilibraryloader.h

    r71 r92  
    11/*
    2  * ilibraryloader.h
    3  *
    4  *  Created on: Jul 10, 2009
    5  *      Author: saemy
     2 smssender - A frontend for fast and easy SMS sending over different gateways.
     3 Copyright (C) 2007-2010, gorrión. See http://smssender.gorrion.ch
     4
     5 This program is free software: you can redistribute it and/or modify
     6 it under the terms of the GNU General Public License as published by
     7 the Free Software Foundation, either version 3 of the License, or
     8 (at your option) any later version.
     9
     10 This program is distributed in the hope that it will be useful,
     11 but WITHOUT ANY WARRANTY; without even the implied warranty of
     12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     13 GNU General Public License for more details.
     14
     15 You should have received a copy of the GNU General Public License
     16 along with this program.  If not, see <http://www.gnu.org/licenses/>.
    617 */
    7 
    818#ifndef ILIBRARYLOADER_H_
    919#define ILIBRARYLOADER_H_
  • lib/libdatatypes/src/interfaces/istorable.h

    r71 r92  
    11/*
    2  * istorable.h
    3  *
    4  *  Created on: Jul 13, 2009
    5  *      Author: saemy
     2 smssender - A frontend for fast and easy SMS sending over different gateways.
     3 Copyright (C) 2007-2010, gorrión. See http://smssender.gorrion.ch
     4
     5 This program is free software: you can redistribute it and/or modify
     6 it under the terms of the GNU General Public License as published by
     7 the Free Software Foundation, either version 3 of the License, or
     8 (at your option) any later version.
     9
     10 This program is distributed in the hope that it will be useful,
     11 but WITHOUT ANY WARRANTY; without even the implied warranty of
     12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     13 GNU General Public License for more details.
     14
     15 You should have received a copy of the GNU General Public License
     16 along with this program.  If not, see <http://www.gnu.org/licenses/>.
    617 */
    7 
    818#ifndef ISTORABLE_H_
    919#define ISTORABLE_H_
  • lib/libdatatypes/src/interfaces/istreamable.h

    r71 r92  
    11/*
    2  * istorable.h
    3  *
    4  *  Created on: May 2, 2009
    5  *      Author: saemy
     2 smssender - A frontend for fast and easy SMS sending over different gateways.
     3 Copyright (C) 2007-2010, gorrión. See http://smssender.gorrion.ch
     4
     5 This program is free software: you can redistribute it and/or modify
     6 it under the terms of the GNU General Public License as published by
     7 the Free Software Foundation, either version 3 of the License, or
     8 (at your option) any later version.
     9
     10 This program is distributed in the hope that it will be useful,
     11 but WITHOUT ANY WARRANTY; without even the implied warranty of
     12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     13 GNU General Public License for more details.
     14
     15 You should have received a copy of the GNU General Public License
     16 along with this program.  If not, see <http://www.gnu.org/licenses/>.
    617 */
    7 
    818#ifndef ISTREAMABLE_H_
    919#define ISTREAMABLE_H_
  • lib/libdatatypes/src/interfaces/ivalidatable.h

    r71 r92  
    11/*
    2  * ivalidatable.h
    3  *
    4  *  Created on: Dec 18, 2009
    5  *      Author: saemy
     2 smssender - A frontend for fast and easy SMS sending over different gateways.
     3 Copyright (C) 2007-2010, gorrión. See http://smssender.gorrion.ch
     4
     5 This program is free software: you can redistribute it and/or modify
     6 it under the terms of the GNU General Public License as published by
     7 the Free Software Foundation, either version 3 of the License, or
     8 (at your option) any later version.
     9
     10 This program is distributed in the hope that it will be useful,
     11 but WITHOUT ANY WARRANTY; without even the implied warranty of
     12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     13 GNU General Public License for more details.
     14
     15 You should have received a copy of the GNU General Public License
     16 along with this program.  If not, see <http://www.gnu.org/licenses/>.
    617 */
    7 
    818#ifndef IVALIDATABLE_H_
    919#define IVALIDATABLE_H_
  • lib/libdatatypes/src/interfaces/ivalidator.h

    r80 r92  
    11/*
    2  * ivalidator.h
    3  *
    4  *  Created on: Dec 18, 2009
    5  *      Author: saemy
     2 smssender - A frontend for fast and easy SMS sending over different gateways.
     3 Copyright (C) 2007-2010, gorrión. See http://smssender.gorrion.ch
     4
     5 This program is free software: you can redistribute it and/or modify
     6 it under the terms of the GNU General Public License as published by
     7 the Free Software Foundation, either version 3 of the License, or
     8 (at your option) any later version.
     9
     10 This program is distributed in the hope that it will be useful,
     11 but WITHOUT ANY WARRANTY; without even the implied warranty of
     12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     13 GNU General Public License for more details.
     14
     15 You should have received a copy of the GNU General Public License
     16 along with this program.  If not, see <http://www.gnu.org/licenses/>.
    617 */
    7 
    818#ifndef IVALIDATOR_H_
    919#define IVALIDATOR_H_
  • lib/libdatatypes/src/interfaces/persistence/iaccountmanager.h

    r80 r92  
    11/*
    2  * iaccountmanager.h
    3  *
    4  *  Created on: Aug 30, 2009
    5  *      Author: saemy
     2 smssender - A frontend for fast and easy SMS sending over different gateways.
     3 Copyright (C) 2007-2010, gorrión. See http://smssender.gorrion.ch
     4
     5 This program is free software: you can redistribute it and/or modify
     6 it under the terms of the GNU General Public License as published by
     7 the Free Software Foundation, either version 3 of the License, or
     8 (at your option) any later version.
     9
     10 This program is distributed in the hope that it will be useful,
     11 but WITHOUT ANY WARRANTY; without even the implied warranty of
     12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     13 GNU General Public License for more details.
     14
     15 You should have received a copy of the GNU General Public License
     16 along with this program.  If not, see <http://www.gnu.org/licenses/>.
    617 */
    7 
    818#ifndef IACCOUNTMANAGER_H_
    919#define IACCOUNTMANAGER_H_
     
    1626#include "iaccount.h"
    1727
    18 #include "../exceptions/eexception.h"
     28#include "sdummyaccount.h"
     29#include "exceptions/eexception.h"
    1930
    2031class IAccountManager: public IInterface{
     
    2334public:
    2435    virtual IAccount*       getAccount(const QString& name)=0;
    25     virtual QSet<IAccount*> getAccountList(QHash<QString, EException>& exceptions)=0;
     36    virtual QSet<IAccount*> getAccountList(QHash<SDummyAccount*, EException>& exceptions)=0;
    2637
    2738    virtual void saveAccount(IAccount* account)=0;
  • lib/libdatatypes/src/interfaces/persistence/icontactmanager.h

    r80 r92  
    11/*
    2  * icontactmanager.h
    3  *
    4  *  Created on: May 24, 2009
    5  *      Author: saemy
     2 smssender - A frontend for fast and easy SMS sending over different gateways.
     3 Copyright (C) 2007-2010, gorrión. See http://smssender.gorrion.ch
     4
     5 This program is free software: you can redistribute it and/or modify
     6 it under the terms of the GNU General Public License as published by
     7 the Free Software Foundation, either version 3 of the License, or
     8 (at your option) any later version.
     9
     10 This program is distributed in the hope that it will be useful,
     11 but WITHOUT ANY WARRANTY; without even the implied warranty of
     12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     13 GNU General Public License for more details.
     14
     15 You should have received a copy of the GNU General Public License
     16 along with this program.  If not, see <http://www.gnu.org/licenses/>.
    617 */
    7 
    818#ifndef ICONTACTMANAGER_H_
    919#define ICONTACTMANAGER_H_
  • lib/libdatatypes/src/interfaces/persistence/igroupmanager.h

    r80 r92  
    11/*
    2  * igroupmanager.h
    3  *
    4  *  Created on: Jun 20, 2009
    5  *      Author: saemy
     2 smssender - A frontend for fast and easy SMS sending over different gateways.
     3 Copyright (C) 2007-2010, gorrión. See http://smssender.gorrion.ch
     4
     5 This program is free software: you can redistribute it and/or modify
     6 it under the terms of the GNU General Public License as published by
     7 the Free Software Foundation, either version 3 of the License, or
     8 (at your option) any later version.
     9
     10 This program is distributed in the hope that it will be useful,
     11 but WITHOUT ANY WARRANTY; without even the implied warranty of
     12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     13 GNU General Public License for more details.
     14
     15 You should have received a copy of the GNU General Public License
     16 along with this program.  If not, see <http://www.gnu.org/licenses/>.
    617 */
    7 
    818#ifndef IGROUPMANAGER_H_
    919#define IGROUPMANAGER_H_
  • lib/libdatatypes/src/interfaces/persistence/isettings.h

    r90 r92  
    11/*
    2  * isettings.h
    3  *
    4  *  Created on: Apr 28, 2009
    5  *      Author: saemy
     2 smssender - A frontend for fast and easy SMS sending over different gateways.
     3 Copyright (C) 2007-2010, gorrión. See http://smssender.gorrion.ch
     4
     5 This program is free software: you can redistribute it and/or modify
     6 it under the terms of the GNU General Public License as published by
     7 the Free Software Foundation, either version 3 of the License, or
     8 (at your option) any later version.
     9
     10 This program is distributed in the hope that it will be useful,
     11 but WITHOUT ANY WARRANTY; without even the implied warranty of
     12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     13 GNU General Public License for more details.
     14
     15 You should have received a copy of the GNU General Public License
     16 along with this program.  If not, see <http://www.gnu.org/licenses/>.
    617 */
    7 
    818#ifndef ISETTINGS_H_
    919#define ISETTINGS_H_
  • lib/libdatatypes/src/interfaces/persistence/istorage.h

    r87 r92  
    11/*
    2  * istorage.h
    3  *
    4  *  Created on: May 1, 2009
    5  *      Author: saemy
     2 smssender - A frontend for fast and easy SMS sending over different gateways.
     3 Copyright (C) 2007-2010, gorrión. See http://smssender.gorrion.ch
     4
     5 This program is free software: you can redistribute it and/or modify
     6 it under the terms of the GNU General Public License as published by
     7 the Free Software Foundation, either version 3 of the License, or
     8 (at your option) any later version.
     9
     10 This program is distributed in the hope that it will be useful,
     11 but WITHOUT ANY WARRANTY; without even the implied warranty of
     12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     13 GNU General Public License for more details.
     14
     15 You should have received a copy of the GNU General Public License
     16 along with this program.  If not, see <http://www.gnu.org/licenses/>.
    617 */
    7 
    818#ifndef ISTORAGE_H_
    919#define ISTORAGE_H_
  • lib/libdatatypes/src/interfaces/persistence/istorageofficer.h

    r71 r92  
    11/*
    2  * istorable.h
    3  *
    4  *  Created on: Jul 13, 2009
    5  *      Author: saemy
     2 smssender - A frontend for fast and easy SMS sending over different gateways.
     3 Copyright (C) 2007-2010, gorrión. See http://smssender.gorrion.ch
     4
     5 This program is free software: you can redistribute it and/or modify
     6 it under the terms of the GNU General Public License as published by
     7 the Free Software Foundation, either version 3 of the License, or
     8 (at your option) any later version.
     9
     10 This program is distributed in the hope that it will be useful,
     11 but WITHOUT ANY WARRANTY; without even the implied warranty of
     12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     13 GNU General Public License for more details.
     14
     15 You should have received a copy of the GNU General Public License
     16 along with this program.  If not, see <http://www.gnu.org/licenses/>.
    617 */
    7 
    818#ifndef ISTOREOFFICER_H_
    919#define ISTOREOFFICER_H_
  • lib/libdatatypes/src/scontact.h

    r80 r92  
    11/*
    2  * BCContact.h
    3  *
    4  *  Created on: May 17, 2009
    5  *      Author: saemy
     2 smssender - A frontend for fast and easy SMS sending over different gateways.
     3 Copyright (C) 2007-2010, gorrión. See http://smssender.gorrion.ch
     4
     5 This program is free software: you can redistribute it and/or modify
     6 it under the terms of the GNU General Public License as published by
     7 the Free Software Foundation, either version 3 of the License, or
     8 (at your option) any later version.
     9
     10 This program is distributed in the hope that it will be useful,
     11 but WITHOUT ANY WARRANTY; without even the implied warranty of
     12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     13 GNU General Public License for more details.
     14
     15 You should have received a copy of the GNU General Public License
     16 along with this program.  If not, see <http://www.gnu.org/licenses/>.
    617 */
    7 
    818#ifndef SCONTACT_H_
    919#define SCONTACT_H_
  • lib/libdatatypes/src/sgroup.cpp

    r86 r92  
    11/*
    2  * BCGroup.cpp
    3  *
    4  *  Created on: Jun 20, 2009
    5  *      Author: saemy
     2 smssender - A frontend for fast and easy SMS sending over different gateways.
     3 Copyright (C) 2007-2010, gorrión. See http://smssender.gorrion.ch
     4
     5 This program is free software: you can redistribute it and/or modify
     6 it under the terms of the GNU General Public License as published by
     7 the Free Software Foundation, either version 3 of the License, or
     8 (at your option) any later version.
     9
     10 This program is distributed in the hope that it will be useful,
     11 but WITHOUT ANY WARRANTY; without even the implied warranty of
     12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     13 GNU General Public License for more details.
     14
     15 You should have received a copy of the GNU General Public License
     16 along with this program.  If not, see <http://www.gnu.org/licenses/>.
    617 */
    7 
    818#include "sgroup.h"
    919#include "sgroup_p.h"
  • lib/libdatatypes/src/sgroup.h

    r80 r92  
    11/*
    2  * BCGroup.h
    3  *
    4  *  Created on: Jun 20, 2009
    5  *      Author: saemy
     2 smssender - A frontend for fast and easy SMS sending over different gateways.
     3 Copyright (C) 2007-2010, gorrión. See http://smssender.gorrion.ch
     4
     5 This program is free software: you can redistribute it and/or modify
     6 it under the terms of the GNU General Public License as published by
     7 the Free Software Foundation, either version 3 of the License, or
     8 (at your option) any later version.
     9
     10 This program is distributed in the hope that it will be useful,
     11 but WITHOUT ANY WARRANTY; without even the implied warranty of
     12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     13 GNU General Public License for more details.
     14
     15 You should have received a copy of the GNU General Public License
     16 along with this program.  If not, see <http://www.gnu.org/licenses/>.
    617 */
    7 
    818#ifndef SGROUP_H_
    919#define SGROUP_H_
  • lib/libdatatypes/src/sgroup_p.h

    r80 r92  
    11/*
    2  * sgroup_p.h
    3  *
    4  *  Created on: Mar 28, 2010
    5  *      Author: saemy
     2 smssender - A frontend for fast and easy SMS sending over different gateways.
     3 Copyright (C) 2007-2010, gorrión. See http://smssender.gorrion.ch
     4
     5 This program is free software: you can redistribute it and/or modify
     6 it under the terms of the GNU General Public License as published by
     7 the Free Software Foundation, either version 3 of the License, or
     8 (at your option) any later version.
     9
     10 This program is distributed in the hope that it will be useful,
     11 but WITHOUT ANY WARRANTY; without even the implied warranty of
     12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     13 GNU General Public License for more details.
     14
     15 You should have received a copy of the GNU General Public License
     16 along with this program.  If not, see <http://www.gnu.org/licenses/>.
    617 */
    7 
    818#ifndef SGROUP_P_H_
    919#define SGROUP_P_H_
  • lib/libdatatypes/src/shttpcookiemanager.cpp

    r71 r92  
     1/*
     2 smssender - A frontend for fast and easy SMS sending over different gateways.
     3 Copyright (C) 2007-2010, gorrión. See http://smssender.gorrion.ch
     4
     5 This program is free software: you can redistribute it and/or modify
     6 it under the terms of the GNU General Public License as published by
     7 the Free Software Foundation, either version 3 of the License, or
     8 (at your option) any later version.
     9
     10 This program is distributed in the hope that it will be useful,
     11 but WITHOUT ANY WARRANTY; without even the implied warranty of
     12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     13 GNU General Public License for more details.
     14
     15 You should have received a copy of the GNU General Public License
     16 along with this program.  If not, see <http://www.gnu.org/licenses/>.
     17 */
    118#include "shttpcookiemanager.h"
    219
  • lib/libdatatypes/src/shttpcookiemanager.h

    r80 r92  
    11/*
    2  * AbstractAccount.h
    3  *
    4  *  Created on: Jul 9, 2009
    5  *      Author: saemy
     2 smssender - A frontend for fast and easy SMS sending over different gateways.
     3 Copyright (C) 2007-2010, gorrión. See http://smssender.gorrion.ch
     4
     5 This program is free software: you can redistribute it and/or modify
     6 it under the terms of the GNU General Public License as published by
     7 the Free Software Foundation, either version 3 of the License, or
     8 (at your option) any later version.
     9
     10 This program is distributed in the hope that it will be useful,
     11 but WITHOUT ANY WARRANTY; without even the implied warranty of
     12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     13 GNU General Public License for more details.
     14
     15 You should have received a copy of the GNU General Public License
     16 along with this program.  If not, see <http://www.gnu.org/licenses/>.
    617 */
    7 
    818#ifndef SHTTPCOOKIEMANAGER_H_
    919#define SHTTPCOOKIEMANAGER_H_
  • lib/libdatatypes/src/shttphelper.cpp

    r89 r92  
     1/*
     2 smssender - A frontend for fast and easy SMS sending over different gateways.
     3 Copyright (C) 2007-2010, gorrión. See http://smssender.gorrion.ch
     4
     5 This program is free software: you can redistribute it and/or modify
     6 it under the terms of the GNU General Public License as published by
     7 the Free Software Foundation, either version 3 of the License, or
     8 (at your option) any later version.
     9
     10 This program is distributed in the hope that it will be useful,
     11 but WITHOUT ANY WARRANTY; without even the implied warranty of
     12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     13 GNU General Public License for more details.
     14
     15 You should have received a copy of the GNU General Public License
     16 along with this program.  If not, see <http://www.gnu.org/licenses/>.
     17 */
    118#include "shttphelper.h"
    219
  • lib/libdatatypes/src/shttphelper.h

    r89 r92  
    11/*
    2  * AbstractAccount.h
    3  *
    4  *  Created on: Jul 9, 2009
    5  *      Author: saemy
     2 smssender - A frontend for fast and easy SMS sending over different gateways.
     3 Copyright (C) 2007-2010, gorrión. See http://smssender.gorrion.ch
     4
     5 This program is free software: you can redistribute it and/or modify
     6 it under the terms of the GNU General Public License as published by
     7 the Free Software Foundation, either version 3 of the License, or
     8 (at your option) any later version.
     9
     10 This program is distributed in the hope that it will be useful,
     11 but WITHOUT ANY WARRANTY; without even the implied warranty of
     12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     13 GNU General Public License for more details.
     14
     15 You should have received a copy of the GNU General Public License
     16 along with this program.  If not, see <http://www.gnu.org/licenses/>.
    617 */
    7 
    818#ifndef SHTTPHELPER_H_
    919#define SHTTPHELPER_H_
  • lib/libdatatypes/src/snumber.cpp

    r87 r92  
    11/*
    2  * SNumber.cpp
    3  *
    4  *  Created on: May 19, 2009
    5  *      Author: saemy
     2 smssender - A frontend for fast and easy SMS sending over different gateways.
     3 Copyright (C) 2007-2010, gorrión. See http://smssender.gorrion.ch
     4
     5 This program is free software: you can redistribute it and/or modify
     6 it under the terms of the GNU General Public License as published by
     7 the Free Software Foundation, either version 3 of the License, or
     8 (at your option) any later version.
     9
     10 This program is distributed in the hope that it will be useful,
     11 but WITHOUT ANY WARRANTY; without even the implied warranty of
     12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     13 GNU General Public License for more details.
     14
     15 You should have received a copy of the GNU General Public License
     16 along with this program.  If not, see <http://www.gnu.org/licenses/>.
    617 */
    7 
    818#include "snumber.h"
    919
  • lib/libdatatypes/src/snumber.h

    r87 r92  
    11/*
    2  * BCNumber.h
    3  *
    4  *  Created on: May 19, 2009
    5  *      Author: saemy
     2 smssender - A frontend for fast and easy SMS sending over different gateways.
     3 Copyright (C) 2007-2010, gorrión. See http://smssender.gorrion.ch
     4
     5 This program is free software: you can redistribute it and/or modify
     6 it under the terms of the GNU General Public License as published by
     7 the Free Software Foundation, either version 3 of the License, or
     8 (at your option) any later version.
     9
     10 This program is distributed in the hope that it will be useful,
     11 but WITHOUT ANY WARRANTY; without even the implied warranty of
     12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     13 GNU General Public License for more details.
     14
     15 You should have received a copy of the GNU General Public License
     16 along with this program.  If not, see <http://www.gnu.org/licenses/>.
    617 */
    7 
    818#ifndef SNUMBER_H_
    919#define SNUMBER_H_
  • lib/libdatatypes/src/structs.h

    r88 r92  
    11/*
    2  * structs.h
    3  *
    4  *  Created on: Apr 15, 2010
    5  *      Author: saemy
     2 smssender - A frontend for fast and easy SMS sending over different gateways.
     3 Copyright (C) 2007-2010, gorrión. See http://smssender.gorrion.ch
     4
     5 This program is free software: you can redistribute it and/or modify
     6 it under the terms of the GNU General Public License as published by
     7 the Free Software Foundation, either version 3 of the License, or
     8 (at your option) any later version.
     9
     10 This program is distributed in the hope that it will be useful,
     11 but WITHOUT ANY WARRANTY; without even the implied warranty of
     12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     13 GNU General Public License for more details.
     14
     15 You should have received a copy of the GNU General Public License
     16 along with this program.  If not, see <http://www.gnu.org/licenses/>.
    617 */
    7 
    818#ifndef STRUCTS_H_
    919#define STRUCTS_H_
  • lib/libdatatypes/src/sversion.cpp

    r89 r92  
    1616 along with this program.  If not, see <http://www.gnu.org/licenses/>.
    1717 */
    18 
    1918#include "sversion.h"
    2019
  • lib/libdatatypes/src/sversion.h

    r89 r92  
    1616 along with this program.  If not, see <http://www.gnu.org/licenses/>.
    1717 */
    18 
    1918#ifndef SVERSION_H_
    2019#define SVERSION_H_
  • lib/libdatatypes/src/ui/iaccountsettingswidget.h

    r80 r92  
    11/*
    2  * iaccountsettingswidget.h
    3  *
    4  *  Created on: Nov 3, 2009
    5  *      Author: saemy
     2 smssender - A frontend for fast and easy SMS sending over different gateways.
     3 Copyright (C) 2007-2010, gorrión. See http://smssender.gorrion.ch
     4
     5 This program is free software: you can redistribute it and/or modify
     6 it under the terms of the GNU General Public License as published by
     7 the Free Software Foundation, either version 3 of the License, or
     8 (at your option) any later version.
     9
     10 This program is distributed in the hope that it will be useful,
     11 but WITHOUT ANY WARRANTY; without even the implied warranty of
     12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     13 GNU General Public License for more details.
     14
     15 You should have received a copy of the GNU General Public License
     16 along with this program.  If not, see <http://www.gnu.org/licenses/>.
    617 */
    7 
    818#ifndef IACCOUNTSETTINGSWIDGET_H_
    919#define IACCOUNTSETTINGSWIDGET_H_
  • lib/libdatatypes/src/validation/sloginaccountvalidator.cpp

    r80 r92  
    11/*
    2  * BCLoginAccountValidator.cpp
    3  *
    4  *  Created on: Dec 20, 2009
    5  *      Author: saemy
     2 smssender - A frontend for fast and easy SMS sending over different gateways.
     3 Copyright (C) 2007-2010, gorrión. See http://smssender.gorrion.ch
     4
     5 This program is free software: you can redistribute it and/or modify
     6 it under the terms of the GNU General Public License as published by
     7 the Free Software Foundation, either version 3 of the License, or
     8 (at your option) any later version.
     9
     10 This program is distributed in the hope that it will be useful,
     11 but WITHOUT ANY WARRANTY; without even the implied warranty of
     12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     13 GNU General Public License for more details.
     14
     15 You should have received a copy of the GNU General Public License
     16 along with this program.  If not, see <http://www.gnu.org/licenses/>.
    617 */
    7 
    818#include "sloginaccountvalidator.h"
    919
  • lib/libdatatypes/src/validation/sloginaccountvalidator.h

    r80 r92  
    11/*
    2  * BCLoginAccountValidator.h
    3  *
    4  *  Created on: Dec 20, 2009
    5  *      Author: saemy
     2 smssender - A frontend for fast and easy SMS sending over different gateways.
     3 Copyright (C) 2007-2010, gorrión. See http://smssender.gorrion.ch
     4
     5 This program is free software: you can redistribute it and/or modify
     6 it under the terms of the GNU General Public License as published by
     7 the Free Software Foundation, either version 3 of the License, or
     8 (at your option) any later version.
     9
     10 This program is distributed in the hope that it will be useful,
     11 but WITHOUT ANY WARRANTY; without even the implied warranty of
     12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     13 GNU General Public License for more details.
     14
     15 You should have received a copy of the GNU General Public License
     16 along with this program.  If not, see <http://www.gnu.org/licenses/>.
    617 */
    7 
    818#ifndef SLOGINACCOUNTVALIDATOR_H_
    919#define SLOGINACCOUNTVALIDATOR_H_
     
    2232    {};
    2333
    24     SValidationResult validate() const;
     34    virtual SValidationResult validate() const;
    2535
    2636protected:
    27     AbstractLoginAccount* account() const;
     37    virtual AbstractLoginAccount* account() const;
    2838};
    2939
  • lib/libdatatypes/src/validation/sstdaccountvalidator.cpp

    r80 r92  
    11/*
    2  * BCAccountValidator.cpp
    3  *
    4  *  Created on: Dec 18, 2009
    5  *      Author: saemy
     2 smssender - A frontend for fast and easy SMS sending over different gateways.
     3 Copyright (C) 2007-2010, gorrión. See http://smssender.gorrion.ch
     4
     5 This program is free software: you can redistribute it and/or modify
     6 it under the terms of the GNU General Public License as published by
     7 the Free Software Foundation, either version 3 of the License, or
     8 (at your option) any later version.
     9
     10 This program is distributed in the hope that it will be useful,
     11 but WITHOUT ANY WARRANTY; without even the implied warranty of
     12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     13 GNU General Public License for more details.
     14
     15 You should have received a copy of the GNU General Public License
     16 along with this program.  If not, see <http://www.gnu.org/licenses/>.
    617 */
    7 
    818#include "sstdaccountvalidator.h"
    919
  • lib/libdatatypes/src/validation/sstdaccountvalidator.h

    r80 r92  
    11/*
    2  * BCStdAccountValidator.h
    3  *
    4  *  Created on: Dec 18, 2009
    5  *      Author: saemy
     2 smssender - A frontend for fast and easy SMS sending over different gateways.
     3 Copyright (C) 2007-2010, gorrión. See http://smssender.gorrion.ch
     4
     5 This program is free software: you can redistribute it and/or modify
     6 it under the terms of the GNU General Public License as published by
     7 the Free Software Foundation, either version 3 of the License, or
     8 (at your option) any later version.
     9
     10 This program is distributed in the hope that it will be useful,
     11 but WITHOUT ANY WARRANTY; without even the implied warranty of
     12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     13 GNU General Public License for more details.
     14
     15 You should have received a copy of the GNU General Public License
     16 along with this program.  If not, see <http://www.gnu.org/licenses/>.
    617 */
    7 
    818#ifndef SSTDACCOUNTVALIDATOR_H_
    919#define SSTDACCOUNTVALIDATOR_H_
     
    2030        : account_(account)
    2131    {};
    22     ~SStdAccountValidator() {};
    2332
    24 
    25     SValidationResult validate() const;
     33    virtual SValidationResult validate() const;
    2634
    2735protected:
    28     IAccount* account() const;
     36    virtual IAccount* account() const;
    2937
    3038private:
  • lib/libdatatypes/src/validation/svalidationresult.cpp

    r80 r92  
    11/*
    2  * BCValidationResult.cpp
    3  *
    4  *  Created on: Dec 18, 2009
    5  *      Author: saemy
     2 smssender - A frontend for fast and easy SMS sending over different gateways.
     3 Copyright (C) 2007-2010, gorrión. See http://smssender.gorrion.ch
     4
     5 This program is free software: you can redistribute it and/or modify
     6 it under the terms of the GNU General Public License as published by
     7 the Free Software Foundation, either version 3 of the License, or
     8 (at your option) any later version.
     9
     10 This program is distributed in the hope that it will be useful,
     11 but WITHOUT ANY WARRANTY; without even the implied warranty of
     12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     13 GNU General Public License for more details.
     14
     15 You should have received a copy of the GNU General Public License
     16 along with this program.  If not, see <http://www.gnu.org/licenses/>.
    617 */
    7 
    818#include "svalidationresult.h"
    919
  • lib/libdatatypes/src/validation/svalidationresult.h

    r80 r92  
    11/*
    2  * BCValidationResult.h
    3  *
    4  *  Created on: Dec 18, 2009
    5  *      Author: saemy
     2 smssender - A frontend for fast and easy SMS sending over different gateways.
     3 Copyright (C) 2007-2010, gorrión. See http://smssender.gorrion.ch
     4
     5 This program is free software: you can redistribute it and/or modify
     6 it under the terms of the GNU General Public License as published by
     7 the Free Software Foundation, either version 3 of the License, or
     8 (at your option) any later version.
     9
     10 This program is distributed in the hope that it will be useful,
     11 but WITHOUT ANY WARRANTY; without even the implied warranty of
     12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     13 GNU General Public License for more details.
     14
     15 You should have received a copy of the GNU General Public License
     16 along with this program.  If not, see <http://www.gnu.org/licenses/>.
    617 */
    7 
    818#ifndef SVALIDATIONRESULT_H_
    919#define SVALIDATIONRESULT_H_
  • lib/libutils/libutils.pro

    r89 r92  
    99QT += core
    1010QMAKE_CXXFLAGS += -shared-libgcc
    11 INCLUDEPATH += app \
    12     ../../include/
     11INCLUDEPATH += app
    1312HEADERS += src/strutils.h \
    1413    src/typeconvert.h
  • lib/libutils/src/strutils.cpp

    r71 r92  
    11/*
    2  * strutils.cpp
    3  *
    4  *  Created on: Jun 19, 2009
    5  *      Author: saemy
     2 smssender - A frontend for fast and easy SMS sending over different gateways.
     3 Copyright (C) 2007-2010, gorrión. See http://smssender.gorrion.ch
     4
     5 This program is free software: you can redistribute it and/or modify
     6 it under the terms of the GNU General Public License as published by
     7 the Free Software Foundation, either version 3 of the License, or
     8 (at your option) any later version.
     9
     10 This program is distributed in the hope that it will be useful,
     11 but WITHOUT ANY WARRANTY; without even the implied warranty of
     12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     13 GNU General Public License for more details.
     14
     15 You should have received a copy of the GNU General Public License
     16 along with this program.  If not, see <http://www.gnu.org/licenses/>.
    617 */
    7 
    818#include "strutils.h"
    9 
    10 #include <QRegExp>
    1119
    1220bool StrUtils::isNumeric(const QString& s){
  • lib/libutils/src/strutils.h

    r41 r92  
    11/*
    2  * strutils.h
    3  *
    4  *  Created on: May 21, 2009
    5  *      Author: saemy
     2 smssender - A frontend for fast and easy SMS sending over different gateways.
     3 Copyright (C) 2007-2010, gorrión. See http://smssender.gorrion.ch
     4
     5 This program is free software: you can redistribute it and/or modify
     6 it under the terms of the GNU General Public License as published by
     7 the Free Software Foundation, either version 3 of the License, or
     8 (at your option) any later version.
     9
     10 This program is distributed in the hope that it will be useful,
     11 but WITHOUT ANY WARRANTY; without even the implied warranty of
     12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     13 GNU General Public License for more details.
     14
     15 You should have received a copy of the GNU General Public License
     16 along with this program.  If not, see <http://www.gnu.org/licenses/>.
    617 */
    7 
    818#ifndef STRUTILS_H_
    919#define STRUTILS_H_
    1020
    11 #include <cstring>
    1221#include <QString>
    1322
     
    1726    static bool isPositiveNumeric(const QString& s);
    1827    static bool isNegativeNumeric(const QString& s);
    19 
    2028};
    2129
    22 
    2330#endif /* STRUTILS_H_ */
  • lib/libutils/src/typeconvert.h

    r41 r92  
    11/*
    2  * typeconvert.h
    3  *
    4  *  Created on: May 1, 2009
    5  *      Author: saemy
     2 smssender - A frontend for fast and easy SMS sending over different gateways.
     3 Copyright (C) 2007-2010, gorrión. See http://smssender.gorrion.ch
     4
     5 This program is free software: you can redistribute it and/or modify
     6 it under the terms of the GNU General Public License as published by
     7 the Free Software Foundation, either version 3 of the License, or
     8 (at your option) any later version.
     9
     10 This program is distributed in the hope that it will be useful,
     11 but WITHOUT ANY WARRANTY; without even the implied warranty of
     12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     13 GNU General Public License for more details.
     14
     15 You should have received a copy of the GNU General Public License
     16 along with this program.  If not, see <http://www.gnu.org/licenses/>.
    617 */
    7 
    818#ifndef TYPECONVERT_H_
    919#define TYPECONVERT_H_
  • locale/de.ts

    r91 r92  
    4343    <name>AccountTreeModel</name>
    4444    <message>
    45         <location filename="../src/ui/models/accounttreemodel.cpp" line="57"/>
     45        <location filename="../src/ui/models/accounttreemodel.cpp" line="58"/>
    4646        <source>Name</source>
    4747        <translation>Name</translation>
    4848    </message>
    4949    <message>
    50         <location filename="../src/ui/models/accounttreemodel.cpp" line="58"/>
     50        <location filename="../src/ui/models/accounttreemodel.cpp" line="59"/>
    5151        <source>Name (Free messages)</source>
    5252        <translation>Name (Gratis-SMS)</translation>
    5353    </message>
    5454    <message>
    55         <location filename="../src/ui/models/accounttreemodel.cpp" line="59"/>
     55        <location filename="../src/ui/models/accounttreemodel.cpp" line="60"/>
    5656        <source>Gateway</source>
    5757        <translation>Dienst</translation>
    5858    </message>
    5959    <message>
    60         <location filename="../src/ui/models/accounttreemodel.cpp" line="60"/>
     60        <location filename="../src/ui/models/accounttreemodel.cpp" line="61"/>
    6161        <source>Enabled</source>
    6262        <translation>Aktiviert</translation>
     
    7474    <name>ContactTableModel</name>
    7575    <message>
    76         <location filename="../src/ui/models/contacttablemodel.cpp" line="49"/>
     76        <location filename="../src/ui/models/contacttablemodel.cpp" line="50"/>
    7777        <source>Name</source>
    7878        <translation>Name</translation>
    7979    </message>
    8080    <message>
    81         <location filename="../src/ui/models/contacttablemodel.cpp" line="50"/>
     81        <location filename="../src/ui/models/contacttablemodel.cpp" line="51"/>
    8282        <source>Number</source>
    8383        <translation>Nummer</translation>
    8484    </message>
    8585    <message>
    86         <location filename="../src/ui/models/contacttablemodel.cpp" line="51"/>
     86        <location filename="../src/ui/models/contacttablemodel.cpp" line="52"/>
    8787        <source>Aliases</source>
    8888        <translation>Aliasse</translation>
     
    9797    </message>
    9898    <message>
    99         <location filename="../src/persistence/storage/DAAccountListManager.cpp" line="40"/>
     99        <location filename="../src/persistence/storage/DAAccountListManager.cpp" line="44"/>
     100        <source>The gateway could not have been found.</source>
     101        <translation>Das Konto konnte nicht gefunden werden.</translation>
     102    </message>
     103    <message>
    100104        <source>The gateway &quot;%1&quot; could not have been found.</source>
    101         <translation>Das Konto &quot;%1&quot; konnte nicht gefunden werden.</translation>
     105        <translation type="obsolete">Das Konto &quot;%1&quot; konnte nicht gefunden werden.</translation>
    102106    </message>
    103107</context>
     
    199203    <name>GroupTableModel</name>
    200204    <message>
    201         <location filename="../src/ui/models/grouptablemodel.cpp" line="48"/>
     205        <location filename="../src/ui/models/grouptablemodel.cpp" line="49"/>
    202206        <source>Name</source>
    203207        <translation>Name</translation>
    204208    </message>
    205209    <message>
    206         <location filename="../src/ui/models/grouptablemodel.cpp" line="49"/>
     210        <location filename="../src/ui/models/grouptablemodel.cpp" line="50"/>
    207211        <source>Members</source>
    208212        <translation>Mitglieder</translation>
     
    377381    <name>VCAccountList</name>
    378382    <message>
    379         <location filename="../src/ui/VCAccountList/vcaccountlist.cpp" line="89"/>
     383        <location filename="../src/ui/VCAccountList/vcaccountlist.cpp" line="87"/>
    380384        <source>SMSSender</source>
    381385        <translation>SMSSender</translation>
    382386    </message>
    383387    <message>
    384         <location filename="../src/ui/VCAccountList/vcaccountlist.cpp" line="90"/>
     388        <location filename="../src/ui/VCAccountList/vcaccountlist.cpp" line="88"/>
    385389        <source>Do you really want to remove this account?</source>
    386390        <translation>Soll dieses Konto wirklich entfernt werden?</translation>
     
    467471    <name>VCEditAccount</name>
    468472    <message>
    469         <location filename="../src/ui/VCEditAccount/vceditaccount.cpp" line="34"/>
     473        <location filename="../src/ui/VCEditAccount/vceditaccount.cpp" line="33"/>
    470474        <source>No gateway available</source>
    471475        <translation>Kein Dienst vorhanden</translation>
    472476    </message>
    473477    <message>
    474         <location filename="../src/ui/VCEditAccount/vceditaccount.cpp" line="35"/>
     478        <location filename="../src/ui/VCEditAccount/vceditaccount.cpp" line="34"/>
    475479        <source>You have not installed any gateway. Adding an account is impossible.</source>
    476480        <translation>Es ist kein Dienst installiert. Das Hinzufügen eines Kontos ist deshalb nicht möglich.</translation>
    477481    </message>
    478482    <message>
    479         <location filename="../src/ui/VCEditAccount/vceditaccount.cpp" line="41"/>
     483        <location filename="../src/ui/VCEditAccount/vceditaccount.cpp" line="40"/>
    480484        <source>Missing gateway</source>
    481485        <translation>Dienst fehlt</translation>
    482486    </message>
    483487    <message>
    484         <location filename="../src/ui/VCEditAccount/vceditaccount.cpp" line="42"/>
     488        <location filename="../src/ui/VCEditAccount/vceditaccount.cpp" line="41"/>
    485489        <source>You can&apos;t edit this account because its gateway has not been loaded.</source>
    486490        <translation>Dieses Konto ist nicht editierbar, da dessen Dienst nicht installiert ist.</translation>
    487491    </message>
    488492    <message>
    489         <location filename="../src/ui/VCEditAccount/vceditaccount.cpp" line="126"/>
     493        <location filename="../src/ui/VCEditAccount/vceditaccount.cpp" line="125"/>
    490494        <source>This account name is already in use.</source>
    491495        <translation>Dieser Kontonamen existiert bereits.       </translation>
    492496    </message>
    493497    <message>
    494         <location filename="../src/ui/VCEditAccount/vceditaccount.cpp" line="134"/>
    495         <location filename="../src/ui/VCEditAccount/vceditaccount.cpp" line="139"/>
     498        <location filename="../src/ui/VCEditAccount/vceditaccount.cpp" line="133"/>
     499        <location filename="../src/ui/VCEditAccount/vceditaccount.cpp" line="138"/>
    496500        <source>SMSSender</source>
    497501        <translation>SMSSender</translation>
  • smssender.pro

    r91 r92  
    1 VERSION = 3.0.0.2
     1VERSION = 3.0.0.3
    22DEFINES += APP_VERSION=\\\"$$VERSION\\\"
    33CONFIG += qt \
     
    2222    lib/libutils/src \
    2323    include/
    24 HEADERS += src/ui/vcabout/vcabout.h \
     24HEADERS += src/business/bcaccountinitmanager.h \
     25    src/business/bcaccountmanager.h \
     26    src/business/bccontactmanager.h \
     27    src/business/bcgatewaymanager.h \
     28    src/business/bcgroupmanager.h \
     29    src/business/bclibraryloader.h \
     30    src/business/bcsettings.h \
    2531    src/business/bcsuffixmanager.h \
    26     src/ui/vcsettings/vcsettings.h \
    27     src/ui/vcsendingdialog/vcsendingdialog.h \
    28     src/business/BCAccountInitManager.h \
    29     src/bootstrap.h \
    30     src/ui/models/accounttreemodel.h \
    31     src/ui/models/loadedaccountmodel.h \
    32     src/ui/models/grouptablemodel.h \
    33     src/ui/models/contacttablemodel.h \
    34     src/persistence/storage/DAAccountListManager.h \
    35     src/persistence/storage/DAStorage.h \
    36     src/ui/models/contactgroupmodel.h \
    37     src/ui/models/aliascompletionmodel.h \
     32    src/persistence/storage/daaccountlistmanager.h \
     33    src/persistence/storage/dastorage.h \
     34    src/persistence/daaccountmanager.h \
     35    src/persistence/dacontactmanager.h \
     36    src/persistence/dagroupmanager.h \
     37    src/persistence/dasettings.h \
     38    src/persistence/persistencefactory.h \
    3839    src/ui/completers/bettercompleter.h \
    3940    src/ui/components/clearbutton.h \
     
    4243    src/ui/components/searchbutton.h \
    4344    src/ui/components/searchlineedit.h \
    44     src/ui/VCEditAccount/vceditaccount.h \
    45     src/ui/VCAccountList/vcaccountlist.h \
    46     src/business/BCGatewayManager.h \
    47     src/persistence/DAAccountManager.h \
    48     src/business/BCAccountManager.h \
    49     src/business/BCLibraryLoader.h \
    50     src/ui/VCEditGroup/vceditgroup.h \
    51     src/persistence/DAGroupManager.h \
    52     src/business/BCGroupManager.h \
    53     src/ui/VCEditContact/vceditcontact.h \
    54     src/persistence/DASettings.h \
    55     src/ui/VCAddressBook/vcaddressbook.h \
    56     src/business/BCContactManager.h \
    57     src/persistence/DAContactManager.h \
    58     src/business/BCSettings.h \
    59     src/persistence/PersistenceFactory.h \
    60     src/ui/VCMain/vcmain.h
    61 SOURCES += src/ui/vcabout/vcabout.cpp \
     45    src/ui/models/accounttreemodel.h \
     46    src/ui/models/loadedaccountmodel.h \
     47    src/ui/models/grouptablemodel.h \
     48    src/ui/models/contacttablemodel.h \
     49    src/ui/models/contactgroupmodel.h \
     50    src/ui/models/aliascompletionmodel.h \
     51    src/ui/vcabout/vcabout.h \
     52    src/ui/vcaccountlist/vcaccountlist.h \
     53    src/ui/vcaddressbook/vcaddressbook.h \
     54    src/ui/vceditaccount/vceditaccount.h \
     55    src/ui/vceditcontact/vceditcontact.h \
     56    src/ui/vceditgroup/vceditgroup.h \
     57    src/ui/vcmain/vcmain.h \
     58    src/ui/vcsendingdialog/vcsendingdialog.h \
     59    src/ui/vcsettings/vcsettings.h \
     60    src/bootstrap.h
     61SOURCES += src/business/bcaccountinitmanager.cpp \
     62    src/business/bcaccountmanager.cpp \
     63    src/business/bccontactmanager.cpp \
     64    src/business/bcgatewaymanager.cpp \
     65    src/business/bcgroupmanager.cpp \
     66    src/business/bclibraryloader.cpp \
     67    src/business/bcsettings.cpp \
    6268    src/business/bcsuffixmanager.cpp \
    63     src/ui/vcsettings/vcsettings.cpp \
    64     src/ui/vcsendingdialog/vcsendingdialog.cpp \
    65     src/business/BCAccountInitManager.cpp \
    66     src/main.cpp \
    67     src/bootstrap.cpp \
    68     src/ui/models/accounttreemodel.cpp \
    69     src/ui/models/loadedaccountmodel.cpp \
    70     src/ui/models/grouptablemodel.cpp \
    71     src/ui/models/contacttablemodel.cpp \
    72     src/persistence/storage/DAAccountListManager.cpp \
    73     src/persistence/storage/DAStorage.cpp \
    74     src/ui/models/contactgroupmodel.cpp \
    75     src/ui/models/aliascompletionmodel.cpp \
     69    src/persistence/storage/daaccountlistmanager.cpp \
     70    src/persistence/storage/dastorage.cpp \
     71    src/persistence/daaccountmanager.cpp \
     72    src/persistence/dacontactmanager.cpp \
     73    src/persistence/dagroupmanager.cpp \
     74    src/persistence/dasettings.cpp \
     75    src/persistence/persistencefactory.cpp \
    7676    src/ui/completers/bettercompleter.cpp \
    7777    src/ui/components/clearbutton.cpp \
     
    7979    src/ui/components/searchbutton.cpp \
    8080    src/ui/components/searchlineedit.cpp \
    81     src/ui/VCEditAccount/vceditaccount.cpp \
    82     src/ui/VCAccountList/vcaccountlist.cpp \
    83     src/business/BCGatewayManager.cpp \
    84     src/persistence/DAAccountManager.cpp \
    85     src/business/BCAccountManager.cpp \
    86     src/business/BCLibraryLoader.cpp \
    87     src/ui/VCEditGroup/vceditgroup.cpp \
    88     src/persistence/DAGroupManager.cpp \
    89     src/business/BCGroupManager.cpp \
    90     src/ui/VCEditContact/vceditcontact.cpp \
    91     src/persistence/DASettings.cpp \
    92     src/ui/VCAddressBook/vcaddressbook.cpp \
    93     src/business/BCContactManager.cpp \
    94     src/business/BCSettings.cpp \
    95     src/persistence/PersistenceFactory.cpp \
    96     src/persistence/DAContactManager.cpp \
    97     src/ui/VCMain/vcmain.cpp
     81    src/ui/models/accounttreemodel.cpp \
     82    src/ui/models/aliascompletionmodel.cpp \
     83    src/ui/models/contactgroupmodel.cpp \
     84    src/ui/models/contacttablemodel.cpp \
     85    src/ui/models/grouptablemodel.cpp \
     86    src/ui/models/loadedaccountmodel.cpp \
     87    src/ui/vcabout/vcabout.cpp \
     88    src/ui/vcaccountlist/vcaccountlist.cpp \
     89    src/ui/vcaddressbook/vcaddressbook.cpp \
     90    src/ui/vcaddressbook/vcaddressbook_contact.cpp \
     91    src/ui/vcaddressbook/vcaddressbook_group.cpp \
     92    src/ui/vceditaccount/vceditaccount.cpp \
     93    src/ui/vceditcontact/vceditcontact.cpp \
     94    src/ui/vceditgroup/vceditgroup.cpp \
     95    src/ui/vcmain/vcmain.cpp \
     96    src/ui/vcsendingdialog/vcsendingdialog.cpp \
     97    src/ui/vcsettings/vcsettings.cpp \
     98    src/bootstrap.cpp \
     99    src/main.cpp
    98100FORMS += src/ui/vcabout/vcabout.ui \
    99     src/ui/vcsettings/vcsettings.ui \
     101    src/ui/vcaccountlist/vcaccountlist.ui \
     102    src/ui/vcaddressbook/vcaddressbook.ui \
     103    src/ui/vceditaccount/vceditaccount.ui \
     104    src/ui/vceditcontact/vceditcontact.ui \
     105    src/ui/vceditgroup/vceditgroup.ui \
     106    src/ui/vcmain/vcmain.ui \
    100107    src/ui/vcsendingdialog/vcsendingdialog.ui \
    101     src/ui/VCEditAccount/vceditaccount.ui \
    102     src/ui/VCAccountList/vcaccountlist.ui \
    103     src/ui/VCEditGroup/vceditgroup.ui \
    104     src/ui/VCEditContact/vceditcontact.ui \
    105     src/ui/VCAddressBook/vcaddressbook.ui \
    106     src/ui/VCMain/vcmain.ui
     108    src/ui/vcsettings/vcsettings.ui
    107109RESOURCES += lib/resource.qrc
    108110TRANSLATIONS += locale/de.ts
  • src/bootstrap.cpp

    r91 r92  
     1/*
     2 smssender - A frontend for fast and easy SMS sending over different gateways.
     3 Copyright (C) 2007-2010, gorrión. See http://smssender.gorrion.ch
     4
     5 This program is free software: you can redistribute it and/or modify
     6 it under the terms of the GNU General Public License as published by
     7 the Free Software Foundation, either version 3 of the License, or
     8 (at your option) any later version.
     9
     10 This program is distributed in the hope that it will be useful,
     11 but WITHOUT ANY WARRANTY; without even the implied warranty of
     12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     13 GNU General Public License for more details.
     14
     15 You should have received a copy of the GNU General Public License
     16 along with this program.  If not, see <http://www.gnu.org/licenses/>.
     17 */
    118#include "bootstrap.h"
    219
     
    926#include <ilibrary.h>
    1027
    11 #include "business/BCGatewayManager.h"
    12 #include "business/BCAccountManager.h"
    13 #include "business/BCLibraryLoader.h"
     28#include "business/bcaccountmanager.h"
     29#include "business/bcgatewaymanager.h"
     30#include "business/bclibraryloader.h"
    1431#include "business/bcsuffixmanager.h"
    1532
     
    3249void Bootstrap::loadGateways() {
    3350    QDir gatewayPath(qApp->applicationDirPath());
    34     #if defined(Q_OS_WIN)
     51    #ifdef Q_OS_WIN
    3552        if (gatewayPath.dirName().toLower() == "debug" || gatewayPath.dirName().toLower() == "release")
    3653            gatewayPath.cdUp();
     
    4663    }
    4764
    48     #if defined(Q_OS_UNIX)
    49         gatewayPath = QDir("/usr/lib/smssender/gateways");
    50         if (gatewayPath.exists()) {
    51             BCGatewayManager::instance()->loadGatewaysFromLibraryPath(gatewayPath);
    52         }
     65    #ifdef Q_OS_UNIX
     66        #ifndef QT_DEBUG
     67            gatewayPath = QDir("/usr/lib/smssender/gateways");
     68            if (gatewayPath.exists()) {
     69                BCGatewayManager::instance()->loadGatewaysFromLibraryPath(gatewayPath);
     70            }
     71        #endif
    5372    #endif
    5473    emit gatewaysLoaded();
     
    5877    erroneousAccounts = BCAccountManager::instance()->readAccountsFromStorage();
    5978    emit accountsLoaded(!erroneousAccounts.isEmpty());
    60 
    61     BCAccountManager::instance()->accountInitManager()->initAccounts(BCAccountManager::instance()->getAccountList());
    6279}
    6380
  • src/bootstrap.h

    r90 r92  
     1/*
     2 smssender - A frontend for fast and easy SMS sending over different gateways.
     3 Copyright (C) 2007-2010, gorrión. See http://smssender.gorrion.ch
     4
     5 This program is free software: you can redistribute it and/or modify
     6 it under the terms of the GNU General Public License as published by
     7 the Free Software Foundation, either version 3 of the License, or
     8 (at your option) any later version.
     9
     10 This program is distributed in the hope that it will be useful,
     11 but WITHOUT ANY WARRANTY; without even the implied warranty of
     12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     13 GNU General Public License for more details.
     14
     15 You should have received a copy of the GNU General Public License
     16 along with this program.  If not, see <http://www.gnu.org/licenses/>.
     17 */
    118#ifndef BOOTSTRAP_H_
    219#define BOOTSTRAP_H_
     
    825
    926#include <iaccount.h>
     27#include <sdummyaccount.h>
    1028#include <eexception.h>
    1129
    12 #include "business/BCSettings.h"
     30#include "business/bcsettings.h"
    1331
    1432class Bootstrap : public QObject {
     
    1937
    2038public:
    21     QHash<QString, EException> erroneousAccounts;
     39    QHash<SDummyAccount*, EException> erroneousAccounts;
    2240
    2341public slots:
  • src/business/bcgatewaymanager.cpp

    r91 r92  
    11/*
    2  * BCGatewayManager.cpp
    3  *
    4  *  Created on: Aug 30, 2009
    5  *      Author: saemy
     2 smssender - A frontend for fast and easy SMS sending over different gateways.
     3 Copyright (C) 2007-2010, gorrión. See http://smssender.gorrion.ch
     4
     5 This program is free software: you can redistribute it and/or modify
     6 it under the terms of the GNU General Public License as published by
     7 the Free Software Foundation, either version 3 of the License, or
     8 (at your option) any later version.
     9
     10 This program is distributed in the hope that it will be useful,
     11 but WITHOUT ANY WARRANTY; without even the implied warranty of
     12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     13 GNU General Public License for more details.
     14
     15 You should have received a copy of the GNU General Public License
     16 along with this program.  If not, see <http://www.gnu.org/licenses/>.
    617 */
    7 
    8 #include "BCGatewayManager.h"
     18#include "bcgatewaymanager.h"
    919
    1020#include <QDir>
    1121#include <QDebug>
    1222
    13 #include "BCLibraryLoader.h"
    14 #include "../persistence/PersistenceFactory.h"
     23#include "bclibraryloader.h"
     24#include "persistence/persistencefactory.h"
    1525
    1626BCGatewayManager* BCGatewayManager::instance_=0;
  • src/business/bclibraryloader.cpp

    r91 r92  
    11/*
    2  * BCLibraryLoader.cpp
    3  *
    4  *  Created on: Jul 10, 2009
    5  *      Author: saemy
     2 smssender - A frontend for fast and easy SMS sending over different gateways.
     3 Copyright (C) 2007-2010, gorrión. See http://smssender.gorrion.ch
     4
     5 This program is free software: you can redistribute it and/or modify
     6 it under the terms of the GNU General Public License as published by
     7 the Free Software Foundation, either version 3 of the License, or
     8 (at your option) any later version.
     9
     10 This program is distributed in the hope that it will be useful,
     11 but WITHOUT ANY WARRANTY; without even the implied warranty of
     12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     13 GNU General Public License for more details.
     14
     15 You should have received a copy of the GNU General Public License
     16 along with this program.  If not, see <http://www.gnu.org/licenses/>.
    617 */
    7 
    8 #include "BCLibraryLoader.h"
     18#include "bclibraryloader.h"
    919
    1020#include <QApplication>
     
    6070            if (lib != NULL) {
    6171                // Prevent loading of old libraries
    62                 SVersion v = lib->version();
    63                 if (!v.isValid() || (v.majorV() !=  LIBRARY_COMPATIBILITY_VERSION)) {
     72                if (lib->compatibilityVersion() !=  ILibrary::COMPATIBILITY_VERSION) {
    6473                    throw Library::ELoadException(Library::ELoadException::VersionMismatch);
    6574                }
  • src/business/bcsuffixmanager.cpp

    r87 r92  
     1/*
     2 smssender - A frontend for fast and easy SMS sending over different gateways.
     3 Copyright (C) 2007-2010, gorrión. See http://smssender.gorrion.ch
     4
     5 This program is free software: you can redistribute it and/or modify
     6 it under the terms of the GNU General Public License as published by
     7 the Free Software Foundation, either version 3 of the License, or
     8 (at your option) any later version.
     9
     10 This program is distributed in the hope that it will be useful,
     11 but WITHOUT ANY WARRANTY; without even the implied warranty of
     12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     13 GNU General Public License for more details.
     14
     15 You should have received a copy of the GNU General Public License
     16 along with this program.  If not, see <http://www.gnu.org/licenses/>.
     17 */
    118#include "bcsuffixmanager.h"
    219
    320#include <QRegExp>
    421
    5 #include "business/BCSettings.h"
     22#include "business/bcsettings.h"
    623
    724BCSuffixManager* BCSuffixManager::instance_ = 0;
  • src/business/bcsuffixmanager.h

    r87 r92  
     1/*
     2 smssender - A frontend for fast and easy SMS sending over different gateways.
     3 Copyright (C) 2007-2010, gorrión. See http://smssender.gorrion.ch
     4
     5 This program is free software: you can redistribute it and/or modify
     6 it under the terms of the GNU General Public License as published by
     7 the Free Software Foundation, either version 3 of the License, or
     8 (at your option) any later version.
     9
     10 This program is distributed in the hope that it will be useful,
     11 but WITHOUT ANY WARRANTY; without even the implied warranty of
     12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     13 GNU General Public License for more details.
     14
     15 You should have received a copy of the GNU General Public License
     16 along with this program.  If not, see <http://www.gnu.org/licenses/>.
     17 */
    118#ifndef BCSUFFIXMANAGER_H_
    219#define BCSUFFIXMANAGER_H_
  • src/main.cpp

    r89 r92  
    1 #include "ui/VCMain/vcmain.h"
     1/*
     2 smssender - A frontend for fast and easy SMS sending over different gateways.
     3 Copyright (C) 2007-2010, gorrión. See http://smssender.gorrion.ch
    24
     5 This program is free software: you can redistribute it and/or modify
     6 it under the terms of the GNU General Public License as published by
     7 the Free Software Foundation, either version 3 of the License, or
     8 (at your option) any later version.
     9
     10 This program is distributed in the hope that it will be useful,
     11 but WITHOUT ANY WARRANTY; without even the implied warranty of
     12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     13 GNU General Public License for more details.
     14
     15 You should have received a copy of the GNU General Public License
     16 along with this program.  If not, see <http://www.gnu.org/licenses/>.
     17 */
    318#include <QApplication>
    419#include <QtGui>
     
    924
    1025#include "bootstrap.h"
     26#include "business/bcsettings.h"
     27#include "ui/vcmain/vcmain.h"
    1128
    12 #include "business/BCSettings.h"
    1329
    1430#if defined(Q_OS_WIN)
     
    2339void LogfileOutputHandler(QtMsgType type, const char *msg) {
    2440    switch (type) {
     41        #ifndef QT_NO_DEBUG_OUTPUT
    2542        case QtDebugMsg:
    2643            logfile << QTime::currentTime().toString().toAscii().data() << " Debug: " << msg << "\n";
    2744            break;
     45        #endif
     46        #ifndef QT_NO_WARNING_OUTPUT
     47        case QtWarningMsg:
     48            logfile << QTime::currentTime().toString().toAscii().data() << " Warning: " << msg << "\n";
     49            break;
     50        #endif
    2851        case QtCriticalMsg:
    2952            logfile << QTime::currentTime().toString().toAscii().data() << " Critical: " << msg << "\n";
    3053            break;
    31         case QtWarningMsg:
    32             logfile << QTime::currentTime().toString().toAscii().data() << " Warning: " << msg << "\n";
    33             break;
    3454        case QtFatalMsg:
    35             logfile << QTime::currentTime().toString().toAscii().data() <<  " Fatal: " << msg << "\n";
     55            logfile << QTime::currentTime().toString().toAscii().data() << " Fatal: " << msg << "\n";
    3656            abort();
    3757    }
     
    4060
    4161int main(int argc, char *argv[]) {
    42     #ifndef QT_NO_DEBUG_OUTPUT
    43         #if defined(Q_OS_WIN)
     62    #if defined(Q_OS_WIN)
    4463        QFile::remove("logfile.txt");
    4564        logfile.open("logfile.txt", ios::app);
    4665        qInstallMsgHandler(LogfileOutputHandler);
    47         #endif
    4866    #endif
    4967
  • src/ui/completers/bettercompleter.cpp

    r43 r92  
    11/*
    2  * BetterCompleter.cpp
    3  *
    4  *  Created on: Jan 16, 2010
    5  *      Author: saemy
     2 smssender - A frontend for fast and easy SMS sending over different gateways.
     3 Copyright (C) 2007-2010, gorrión. See http://smssender.gorrion.ch
     4
     5 This program is free software: you can redistribute it and/or modify
     6 it under the terms of the GNU General Public License as published by
     7 the Free Software Foundation, either version 3 of the License, or
     8 (at your option) any later version.
     9
     10 This program is distributed in the hope that it will be useful,
     11 but WITHOUT ANY WARRANTY; without even the implied warranty of
     12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     13 GNU General Public License for more details.
     14
     15 You should have received a copy of the GNU General Public License
     16 along with this program.  If not, see <http://www.gnu.org/licenses/>.
    617 */
     18#include "bettercompleter.h"
    719
    8 #include "bettercompleter.h"
     20#include <QAbstractItemView>
    921
    1022BetterCompletionModel::BetterCompletionModel(QObject* parent)
  • src/ui/completers/bettercompleter.h

    r43 r92  
    11/*
    2  * BetterCompleter.h
    3  *
    4  *  Created on: Jan 16, 2010
    5  *      Author: saemy
     2 smssender - A frontend for fast and easy SMS sending over different gateways.
     3 Copyright (C) 2007-2010, gorrión. See http://smssender.gorrion.ch
     4
     5 This program is free software: you can redistribute it and/or modify
     6 it under the terms of the GNU General Public License as published by
     7 the Free Software Foundation, either version 3 of the License, or
     8 (at your option) any later version.
     9
     10 This program is distributed in the hope that it will be useful,
     11 but WITHOUT ANY WARRANTY; without even the implied warranty of
     12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     13 GNU General Public License for more details.
     14
     15 You should have received a copy of the GNU General Public License
     16 along with this program.  If not, see <http://www.gnu.org/licenses/>.
    617 */
    7 
    818#ifndef BETTERCOMPLETER_H_
    919#define BETTERCOMPLETER_H_
     
    1121#include <QCompleter>
    1222#include <QSortFilterProxyModel>
     23#include <QStringList>
    1324#include <QTimer>
    14 #include <QStringList>
    1525
    1626class BetterCompletionModel: public QSortFilterProxyModel {
     
    5666    BetterCompleter(QAbstractItemModel* model, QObject* parent = 0);
    5767
    58     virtual QString pathFromIndex(const QModelIndex& index) const;
    59     virtual QStringList splitPath(const QString& path) const;
     68    QString pathFromIndex(const QModelIndex& index) const;
     69    QStringList splitPath(const QString& path) const;
    6070
    6171private slots:
  • src/ui/models/accounttreemodel.cpp

    r89 r92  
     1/*
     2 smssender - A frontend for fast and easy SMS sending over different gateways.
     3 Copyright (C) 2007-2010, gorrión. See http://smssender.gorrion.ch
     4
     5 This program is free software: you can redistribute it and/or modify
     6 it under the terms of the GNU General Public License as published by
     7 the Free Software Foundation, either version 3 of the License, or
     8 (at your option) any later version.
     9
     10 This program is distributed in the hope that it will be useful,
     11 but WITHOUT ANY WARRANTY; without even the implied warranty of
     12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     13 GNU General Public License for more details.
     14
     15 You should have received a copy of the GNU General Public License
     16 along with this program.  If not, see <http://www.gnu.org/licenses/>.
     17 */
    118#include "accounttreemodel.h"
    219
    320#include <QDebug>
     21#include <QIcon>
    422
    523AccountTreeModel::AccountTreeModel(QObject* parent)
     
    826    connect(BCAccountManager::instance(), SIGNAL(accountAdded(IAccount*)),
    927            this, SLOT(listAltered()));
    10     connect(BCAccountManager::instance(), SIGNAL(accountUpdated(IAccount*)),
     28    connect(BCAccountManager::instance(), SIGNAL(accountDataChanged(IAccount*, int)),
    1129            this, SLOT(accountUpdated(IAccount*)));
    1230    connect(BCAccountManager::instance(), SIGNAL(accountInitStateChanged(IAccount*)),
     
    1836}
    1937AccountTreeModel::~AccountTreeModel() {
    20     disconnect(BCAccountManager::instance(), SIGNAL(accountAdded(IAccount*)),
    21             this, SLOT(listAltered()));
    22     disconnect(BCAccountManager::instance(), SIGNAL(accountUpdated(IAccount*)),
    23             this, SLOT(accountUpdated(IAccount*)));
    24     disconnect(BCAccountManager::instance(), SIGNAL(accountInitStateChanged(IAccount*)),
    25             this, SLOT(accountUpdated(IAccount*)));
    26     disconnect(BCAccountManager::instance(), SIGNAL(accountRemoved(IAccount*)),
    27             this, SLOT(listAltered()));
     38    disconnect(BCAccountManager::instance(), 0, this, 0);
    2839}
    2940
     
    102113            case ColGatewayName:
    103114            case ColNameWFreeCount:
    104                 return QPixmap::fromImage(account->gateway()->icon());
     115                return QIcon(QPixmap::fromImage(account->gateway()->icon()));
    105116        }
    106117    }
  • src/ui/models/accounttreemodel.h

    r89 r92  
    1 #ifndef UI_ACCOUNTTREEMODEL_H
    2 #define UI_ACCOUNTTREEMODEL_H
     1/*
     2 smssender - A frontend for fast and easy SMS sending over different gateways.
     3 Copyright (C) 2007-2010, gorrión. See http://smssender.gorrion.ch
     4
     5 This program is free software: you can redistribute it and/or modify
     6 it under the terms of the GNU General Public License as published by
     7 the Free Software Foundation, either version 3 of the License, or
     8 (at your option) any later version.
     9
     10 This program is distributed in the hope that it will be useful,
     11 but WITHOUT ANY WARRANTY; without even the implied warranty of
     12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     13 GNU General Public License for more details.
     14
     15 You should have received a copy of the GNU General Public License
     16 along with this program.  If not, see <http://www.gnu.org/licenses/>.
     17 */
     18#ifndef ACCOUNTTREEMODEL_H
     19#define ACCOUNTTREEMODEL_H
    320
    421#include <QObject>
     
    623
    724#include <iaccount.h>
    8 #include "../../business/BCAccountManager.h"
     25#include "business/bcaccountmanager.h"
    926
    1027class AccountTreeModel: public QAbstractTableModel {
     
    4562
    4663
    47 #endif // UI_ACCOUNTTREEMODEL_H
     64#endif // ACCOUNTTREEMODEL_H
    4865
  • src/ui/models/aliascompletionmodel.cpp

    r43 r92  
     1/*
     2 smssender - A frontend for fast and easy SMS sending over different gateways.
     3 Copyright (C) 2007-2010, gorrión. See http://smssender.gorrion.ch
     4
     5 This program is free software: you can redistribute it and/or modify
     6 it under the terms of the GNU General Public License as published by
     7 the Free Software Foundation, either version 3 of the License, or
     8 (at your option) any later version.
     9
     10 This program is distributed in the hope that it will be useful,
     11 but WITHOUT ANY WARRANTY; without even the implied warranty of
     12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     13 GNU General Public License for more details.
     14
     15 You should have received a copy of the GNU General Public License
     16 along with this program.  If not, see <http://www.gnu.org/licenses/>.
     17 */
    118#include "aliascompletionmodel.h"
    219
  • src/ui/models/aliascompletionmodel.h

    r43 r92  
    1 #ifndef HISTORYCOMPLETER_H
    2 #define HISTORYCOMPLETER_H
     1/*
     2 smssender - A frontend for fast and easy SMS sending over different gateways.
     3 Copyright (C) 2007-2010, gorrión. See http://smssender.gorrion.ch
    34
    4 #include "../completers/bettercompleter.h"
     5 This program is free software: you can redistribute it and/or modify
     6 it under the terms of the GNU General Public License as published by
     7 the Free Software Foundation, either version 3 of the License, or
     8 (at your option) any later version.
     9
     10 This program is distributed in the hope that it will be useful,
     11 but WITHOUT ANY WARRANTY; without even the implied warranty of
     12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     13 GNU General Public License for more details.
     14
     15 You should have received a copy of the GNU General Public License
     16 along with this program.  If not, see <http://www.gnu.org/licenses/>.
     17 */
     18#ifndef ALIASCOMPLETIONMODEL_H
     19#define ALIASCOMPLETIONMODEL_H
     20
     21#include "ui/completers/bettercompleter.h"
    522
    623class AliasCompletionModel: public BetterCompletionModel {
     
    2138};
    2239
    23 #endif
     40#endif // ALIASCOMPLETIONMODEL_H
  • src/ui/models/contactgroupmodel.cpp

    r90 r92  
     1/*
     2 smssender - A frontend for fast and easy SMS sending over different gateways.
     3 Copyright (C) 2007-2010, gorrión. See http://smssender.gorrion.ch
     4
     5 This program is free software: you can redistribute it and/or modify
     6 it under the terms of the GNU General Public License as published by
     7 the Free Software Foundation, either version 3 of the License, or
     8 (at your option) any later version.
     9
     10 This program is distributed in the hope that it will be useful,
     11 but WITHOUT ANY WARRANTY; without even the implied warranty of
     12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     13 GNU General Public License for more details.
     14
     15 You should have received a copy of the GNU General Public License
     16 along with this program.  If not, see <http://www.gnu.org/licenses/>.
     17 */
    118#include "contactgroupmodel.h"
    219
    3 #include <QImage>
    4 #include <QPixmap>
    520#include <QDebug>
     21#include <QIcon>
    622
    723ContactGroupListModel::ContactGroupListModel(QObject* parent)
     
    2541}
    2642ContactGroupListModel::~ContactGroupListModel() {
    27     disconnect(BCContactManager::instance(), SIGNAL(contactAdded(SContact*)),
    28                this, SLOT(listAltered()));
    29     disconnect(BCContactManager::instance(), SIGNAL(contactUpdated(SContact*)),
    30                this, SLOT(dataUpdated(SContact*)));
    31     disconnect(BCContactManager::instance(), SIGNAL(contactRemoved(SContact*)),
    32                this, SLOT(listAltered()));
    33 
    34     disconnect(BCGroupManager::instance(), SIGNAL(groupAdded(SGroup*)),
    35                this, SLOT(listAltered()));
    36     disconnect(BCGroupManager::instance(), SIGNAL(groupUpdated(SGroup*)),
    37                this, SLOT(dataUpdated(SGroup*)));
    38     disconnect(BCGroupManager::instance(), SIGNAL(groupRemoved(SGroup*)),
    39                this, SLOT(listAltered()));
     43    disconnect(BCContactManager::instance(), 0, this, 0);
     44    disconnect(BCGroupManager::instance(), 0, this, 0);
    4045}
    4146
     
    135140
    136141    switch (role) {
    137     case Qt::DisplayRole:
    138         if (contact != NULL) {
    139             QString contactStr = contact->name();
    140             QString aliasStr   = "";
    141             foreach(QString alias, contact->aliases()) {
    142                 aliasStr += alias + ", ";
    143             }
    144             aliasStr.remove(QRegExp(", $"));
    145             if (aliasStr != "") {
    146                 contactStr += " (" + aliasStr + ")";
    147             }
    148             return contactStr;
    149         }
    150         if (group != NULL) {
    151             return "<" + group->name() + ">";
    152         }
    153         break;
    154 
    155     case Qt::EditRole:
    156         if (contact != NULL)
    157             return contact->name();
    158         if (group != NULL)
    159             return group->name();
    160         break;
    161 
    162     case Qt::DecorationRole:
    163         QImage img;
    164         if (contact != NULL) {
    165             img = contact->image();
    166         }
    167         if (group != NULL) {
    168             img = group->image();
    169         }
    170         return QPixmap::fromImage(img.scaled(32, 32, Qt::KeepAspectRatio));
     142        case Qt::DisplayRole:
     143            if (contact != NULL) {
     144                QString contactStr = contact->name();
     145                QString aliasStr   = "";
     146                foreach(QString alias, contact->aliases()) {
     147                    aliasStr += alias + ", ";
     148                }
     149                aliasStr.remove(QRegExp(", $"));
     150                if (aliasStr != "") {
     151                    contactStr += " (" + aliasStr + ")";
     152                }
     153                return contactStr;
     154            }
     155            if (group != NULL) {
     156                return "<" + group->name() + ">";
     157            }
     158            break;
     159
     160        case Qt::EditRole:
     161            if (contact != NULL)
     162                return contact->name();
     163            if (group != NULL)
     164                return group->name();
     165            break;
     166
     167        case Qt::DecorationRole:
     168            QImage img;
     169            if (contact != NULL) {
     170                img = contact->image();
     171            }
     172            if (group != NULL) {
     173                img = group->image();
     174            }
     175
     176            return QIcon(QPixmap::fromImage(img));
    171177    }
    172178
  • src/ui/models/contactgroupmodel.h

    r80 r92  
    1 #ifndef UI_CONTACTGROUPMODEL_H
    2 #define UI_CONTACTGROUPMODEL_H
     1/*
     2 smssender - A frontend for fast and easy SMS sending over different gateways.
     3 Copyright (C) 2007-2010, gorrión. See http://smssender.gorrion.ch
    34
    4 #include <QObject>
     5 This program is free software: you can redistribute it and/or modify
     6 it under the terms of the GNU General Public License as published by
     7 the Free Software Foundation, either version 3 of the License, or
     8 (at your option) any later version.
     9
     10 This program is distributed in the hope that it will be useful,
     11 but WITHOUT ANY WARRANTY; without even the implied warranty of
     12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     13 GNU General Public License for more details.
     14
     15 You should have received a copy of the GNU General Public License
     16 along with this program.  If not, see <http://www.gnu.org/licenses/>.
     17 */
     18#ifndef CONTACTGROUPMODEL_H
     19#define CONTACTGROUPMODEL_H
     20
    521#include <QAbstractListModel>
    622#include <QList>
     
    925#include <scontact.h>
    1026#include <sgroup.h>
    11 #include "../../business/BCContactManager.h"
    12 #include "../../business/BCGroupManager.h"
     27
     28#include "business/bccontactmanager.h"
     29#include "business/bcgroupmanager.h"
    1330
    1431class ContactGroupListModel: public QAbstractListModel {
     
    4764
    4865
    49 #endif // UI_CONTACTGROUPMODEL_H
     66#endif // CONTACTGROUPMODEL_H
    5067
  • src/ui/models/contacttablemodel.cpp

    r87 r92  
     1/*
     2 smssender - A frontend for fast and easy SMS sending over different gateways.
     3 Copyright (C) 2007-2010, gorrión. See http://smssender.gorrion.ch
     4
     5 This program is free software: you can redistribute it and/or modify
     6 it under the terms of the GNU General Public License as published by
     7 the Free Software Foundation, either version 3 of the License, or
     8 (at your option) any later version.
     9
     10 This program is distributed in the hope that it will be useful,
     11 but WITHOUT ANY WARRANTY; without even the implied warranty of
     12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     13 GNU General Public License for more details.
     14
     15 You should have received a copy of the GNU General Public License
     16 along with this program.  If not, see <http://www.gnu.org/licenses/>.
     17 */
    118#include "contacttablemodel.h"
    219
    320#include <QDebug>
     21#include <QIcon>
    422
    523#include <snumber.h>
    6 #include "../../business/BCContactManager.h"
     24#include "business/bccontactmanager.h"
    725
    826ContactTableModel::ContactTableModel(QObject* parent)
     
    1735}
    1836ContactTableModel::~ContactTableModel() {
    19     disconnect(BCContactManager::instance(), SIGNAL(contactAdded(SContact*)),
    20                this, SLOT(contactAddRemove(SContact*)));
    21     disconnect(BCContactManager::instance(), SIGNAL(contactUpdated(SContact*)),
    22                this, SLOT(contactUpdated(SContact*)));
    23     disconnect(BCContactManager::instance(), SIGNAL(contactRemoved(SContact*)),
    24                this, SLOT(contactAddRemove(SContact*)));
     37    disconnect(BCContactManager::instance(), 0, this, 0);
    2538}
    2639
     
    89102        switch (index.column()) {
    90103            case ColImage:
    91                 return contact->image();
     104                return QIcon(QPixmap::fromImage(contact->image()));
    92105        }
    93106    }
  • src/ui/models/contacttablemodel.h

    r87 r92  
    1 #ifndef UI_CONTACTTABLEMODEL_H
    2 #define UI_CONTACTTABLEMODEL_H
     1/*
     2 smssender - A frontend for fast and easy SMS sending over different gateways.
     3 Copyright (C) 2007-2010, gorrión. See http://smssender.gorrion.ch
    34
    4 #include <QObject>
     5 This program is free software: you can redistribute it and/or modify
     6 it under the terms of the GNU General Public License as published by
     7 the Free Software Foundation, either version 3 of the License, or
     8 (at your option) any later version.
     9
     10 This program is distributed in the hope that it will be useful,
     11 but WITHOUT ANY WARRANTY; without even the implied warranty of
     12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     13 GNU General Public License for more details.
     14
     15 You should have received a copy of the GNU General Public License
     16 along with this program.  If not, see <http://www.gnu.org/licenses/>.
     17 */
     18#ifndef CONTACTTABLEMODEL_H
     19#define CONTACTTABLEMODEL_H
     20
    521#include <QAbstractTableModel>
    622
     
    4258
    4359
    44 #endif // UI_CONTACTTABLEMODEL_H
     60#endif // CONTACTTABLEMODEL_H
    4561
  • src/ui/models/grouptablemodel.cpp

    r87 r92  
     1/*
     2 smssender - A frontend for fast and easy SMS sending over different gateways.
     3 Copyright (C) 2007-2010, gorrión. See http://smssender.gorrion.ch
     4
     5 This program is free software: you can redistribute it and/or modify
     6 it under the terms of the GNU General Public License as published by
     7 the Free Software Foundation, either version 3 of the License, or
     8 (at your option) any later version.
     9
     10 This program is distributed in the hope that it will be useful,
     11 but WITHOUT ANY WARRANTY; without even the implied warranty of
     12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     13 GNU General Public License for more details.
     14
     15 You should have received a copy of the GNU General Public License
     16 along with this program.  If not, see <http://www.gnu.org/licenses/>.
     17 */
    118#include "grouptablemodel.h"
    219
    320#include <QDebug>
     21#include <QIcon>
    422
    5 #include "../../business/BCGroupManager.h"
     23#include "business/bcgroupmanager.h"
    624
    725GroupTableModel::GroupTableModel(QObject* parent)
     
    1634}
    1735GroupTableModel::~GroupTableModel() {
    18     disconnect(BCGroupManager::instance(), SIGNAL(groupAdded(SGroup*)),
    19                this, SLOT(groupAddRemove(SGroup*)));
    20     disconnect(BCGroupManager::instance(), SIGNAL(groupUpdated(SGroup*)),
    21                this, SLOT(groupUpdated(SGroup*)));
    22     disconnect(BCGroupManager::instance(), SIGNAL(groupRemoved(SGroup*)),
    23                this, SLOT(groupAddRemove(SGroup*)));
     36    disconnect(BCGroupManager::instance(), 0, this, 0);
    2437}
    2538
     
    8699        switch (index.column()) {
    87100            case ColImage:
    88                 return group->image();
     101                return QIcon(QPixmap::fromImage(group->image()));
    89102        }
    90103    }
  • src/ui/models/grouptablemodel.h

    r87 r92  
    1 #ifndef UI_GROUPTABLEMODEL_H
    2 #define UI_GROUPTABLEMODEL_H
     1/*
     2 smssender - A frontend for fast and easy SMS sending over different gateways.
     3 Copyright (C) 2007-2010, gorrión. See http://smssender.gorrion.ch
    34
    4 #include <QObject>
     5 This program is free software: you can redistribute it and/or modify
     6 it under the terms of the GNU General Public License as published by
     7 the Free Software Foundation, either version 3 of the License, or
     8 (at your option) any later version.
     9
     10 This program is distributed in the hope that it will be useful,
     11 but WITHOUT ANY WARRANTY; without even the implied warranty of
     12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     13 GNU General Public License for more details.
     14
     15 You should have received a copy of the GNU General Public License
     16 along with this program.  If not, see <http://www.gnu.org/licenses/>.
     17 */
     18#ifndef GROUPTABLEMODEL_H
     19#define GROUPTABLEMODEL_H
     20
    521#include <QAbstractTableModel>
    622
     
    3955
    4056
    41 #endif // UI_GROUPTABLEMODEL_H
    42 
     57#endif // GROUPTABLEMODEL_H
  • src/ui/models/loadedaccountmodel.cpp

    r72 r92  
    11/*
    2  * loadedaccountmodel.cpp
    3  *
    4  *  Created on: Feb 1, 2010
    5  *      Author: saemy
     2 smssender - A frontend for fast and easy SMS sending over different gateways.
     3 Copyright (C) 2007-2010, gorrión. See http://smssender.gorrion.ch
     4
     5 This program is free software: you can redistribute it and/or modify
     6 it under the terms of the GNU General Public License as published by
     7 the Free Software Foundation, either version 3 of the License, or
     8 (at your option) any later version.
     9
     10 This program is distributed in the hope that it will be useful,
     11 but WITHOUT ANY WARRANTY; without even the implied warranty of
     12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     13 GNU General Public License for more details.
     14
     15 You should have received a copy of the GNU General Public License
     16 along with this program.  If not, see <http://www.gnu.org/licenses/>.
    617 */
    7 
    818#include "loadedaccountmodel.h"
    919
  • src/ui/models/loadedaccountmodel.h

    r67 r92  
    11/*
    2  * loadedaccountmodel.h
    3  *
    4  *  Created on: Feb 1, 2010
    5  *      Author: saemy
     2 smssender - A frontend for fast and easy SMS sending over different gateways.
     3 Copyright (C) 2007-2010, gorrión. See http://smssender.gorrion.ch
     4
     5 This program is free software: you can redistribute it and/or modify
     6 it under the terms of the GNU General Public License as published by
     7 the Free Software Foundation, either version 3 of the License, or
     8 (at your option) any later version.
     9
     10 This program is distributed in the hope that it will be useful,
     11 but WITHOUT ANY WARRANTY; without even the implied warranty of
     12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     13 GNU General Public License for more details.
     14
     15 You should have received a copy of the GNU General Public License
     16 along with this program.  If not, see <http://www.gnu.org/licenses/>.
    617 */
    7 
    818#ifndef LOADEDACCOUNTMODEL_H_
    919#define LOADEDACCOUNTMODEL_H_
     
    1727    {};
    1828
    19 
    2029protected:
    2130    bool filterAcceptsRow(int source_row, const QModelIndex& source_parent) const;
  • src/ui/vcabout/vcabout.cpp

    r89 r92  
    11/*
    2   smssender - A frontend for fast and easy SMS sending over different gateways.
    3   Copyright (C) 2007-2010, gorrión. See http://smssender.gorrion.ch
     2 smssender - A frontend for fast and easy SMS sending over different gateways.
     3 Copyright (C) 2007-2010, gorrión. See http://smssender.gorrion.ch
    44
    5   This program is free software: you can redistribute it and/or modify
    6   it under the terms of the GNU General Public License as published by
    7   the Free Software Foundation, either version 3 of the License, or
    8   (at your option) any later version.
     5 This program is free software: you can redistribute it and/or modify
     6 it under the terms of the GNU General Public License as published by
     7 the Free Software Foundation, either version 3 of the License, or
     8 (at your option) any later version.
    99
    10   This program is distributed in the hope that it will be useful,
    11   but WITHOUT ANY WARRANTY; without even the implied warranty of
    12   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    13   GNU General Public License for more details.
     10 This program is distributed in the hope that it will be useful,
     11 but WITHOUT ANY WARRANTY; without even the implied warranty of
     12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     13 GNU General Public License for more details.
    1414
    15   You should have received a copy of the GNU General Public License
    16   along with this program.  If not, see <http://www.gnu.org/licenses/>.
    17 */
     15 You should have received a copy of the GNU General Public License
     16 along with this program.  If not, see <http://www.gnu.org/licenses/>.
     17 */
    1818#include "vcabout.h"
    1919
     
    2323#include <sversion.h>
    2424
    25 #include "business/BCLibraryLoader.h"
     25#include "business/bclibraryloader.h"
    2626
    2727VCAbout::VCAbout(QWidget* parent)
     
    5858    }
    5959}
    60 
    61 VCAbout::~VCAbout() {
    62 
    63 }
  • src/ui/vcabout/vcabout.h

    r86 r92  
    11/*
    2   smssender - A frontend for fast and easy SMS sending over different gateways.
    3   Copyright (C) 2007-2010, gorrión. See http://smssender.gorrion.ch
     2 smssender - A frontend for fast and easy SMS sending over different gateways.
     3 Copyright (C) 2007-2010, gorrión. See http://smssender.gorrion.ch
    44
    5   This program is free software: you can redistribute it and/or modify
    6   it under the terms of the GNU General Public License as published by
    7   the Free Software Foundation, either version 3 of the License, or
    8   (at your option) any later version.
     5 This program is free software: you can redistribute it and/or modify
     6 it under the terms of the GNU General Public License as published by
     7 the Free Software Foundation, either version 3 of the License, or
     8 (at your option) any later version.
    99
    10   This program is distributed in the hope that it will be useful,
    11   but WITHOUT ANY WARRANTY; without even the implied warranty of
    12   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    13   GNU General Public License for more details.
     10 This program is distributed in the hope that it will be useful,
     11 but WITHOUT ANY WARRANTY; without even the implied warranty of
     12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     13 GNU General Public License for more details.
    1414
    15   You should have received a copy of the GNU General Public License
    16   along with this program.  If not, see <http://www.gnu.org/licenses/>.
    17 */
     15 You should have received a copy of the GNU General Public License
     16 along with this program.  If not, see <http://www.gnu.org/licenses/>.
     17 */
    1818#ifndef VCABOUT_H
    1919#define VCABOUT_H
     
    2727public:
    2828    VCAbout(QWidget* parent = 0);
    29     ~VCAbout();
     29    ~VCAbout() {};
    3030
    3131private:
  • src/ui/vcaccountlist/vcaccountlist.cpp

    r91 r92  
     1/*
     2 smssender - A frontend for fast and easy SMS sending over different gateways.
     3 Copyright (C) 2007-2010, gorrión. See http://smssender.gorrion.ch
     4
     5 This program is free software: you can redistribute it and/or modify
     6 it under the terms of the GNU General Public License as published by
     7 the Free Software Foundation, either version 3 of the License, or
     8 (at your option) any later version.
     9
     10 This program is distributed in the hope that it will be useful,
     11 but WITHOUT ANY WARRANTY; without even the implied warranty of
     12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     13 GNU General Public License for more details.
     14
     15 You should have received a copy of the GNU General Public License
     16 along with this program.  If not, see <http://www.gnu.org/licenses/>.
     17 */
    118#include "vcaccountlist.h"
    219
     
    522#include <QDebug>
    623
    7 #include "../VCEditAccount/vceditaccount.h"
    8 
    9 #include "../../business/BCAccountManager.h"
    10 #include "../../business/BCGatewayManager.h"
    11 
    1224#include <typeconvert.h>
    1325
    14 #include "../completers/bettercompleter.h"
     26#include "business/bcaccountmanager.h"
     27#include "business/bcgatewaymanager.h"
     28
     29#include "ui/completers/bettercompleter.h"
     30#include "ui/vceditaccount/vceditaccount.h"
    1531
    1632VCAccountList::VCAccountList(QWidget *parent)
     
    4258    on_tblViewAccounts_selectionChanged(); // Set initial state
    4359}
     60VCAccountList::~VCAccountList() {
     61    disconnect(ui.edtAccountFilter, 0, proxyModel_, 0);
     62    disconnect(ui.tblViewAccounts, 0, this, 0);
     63}
    4464
    4565IAccount* VCAccountList::getAccountFromRow(int rowId) const {
     
    6989
    7090void VCAccountList::on_btnAddAccount_clicked(){
     91    if (!ui.btnAddAccount->isEnabled())
     92        return;
     93
    7194    editAccount(NULL);
    7295}
    7396
    7497void VCAccountList::on_btnEditAccount_clicked(){
     98    if (!ui.btnEditAccount->isEnabled())
     99        return;
     100
    75101    IAccount* account = getSelectedAccount();
    76102    if (account == NULL)
     
    81107
    82108void VCAccountList::on_btnRemoveAccount_clicked(){
     109    if (!ui.btnRemoveAccount->isEnabled())
     110        return;
     111
    83112    IAccount* account = getSelectedAccount();
    84113    if (account == NULL)
     
    92121        //TODO: do this eventually over the model...
    93122        BCAccountManager::instance()->removeAccount(account->id());
     123        on_tblViewAccounts_selectionChanged();
    94124    }
    95125}
     
    97127void VCAccountList::on_tblViewAccounts_selectionChanged() {
    98128    ui.btnEditAccount->setEnabled(ui.tblViewAccounts->selectionModel()->hasSelection() &&
    99                                   !BCGatewayManager::instance()->getGatewayList().isEmpty());
     129                                  BCGatewayManager::instance()->getGatewayList().contains(getSelectedAccount()->gateway()));
    100130    ui.btnRemoveAccount->setEnabled(ui.tblViewAccounts->selectionModel()->hasSelection());
    101131}
  • src/ui/vceditaccount/vceditaccount.cpp

    r91 r92  
     1/*
     2 smssender - A frontend for fast and easy SMS sending over different gateways.
     3 Copyright (C) 2007-2010, gorrión. See http://smssender.gorrion.ch
     4
     5 This program is free software: you can redistribute it and/or modify
     6 it under the terms of the GNU General Public License as published by
     7 the Free Software Foundation, either version 3 of the License, or
     8 (at your option) any later version.
     9
     10 This program is distributed in the hope that it will be useful,
     11 but WITHOUT ANY WARRANTY; without even the implied warranty of
     12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     13 GNU General Public License for more details.
     14
     15 You should have received a copy of the GNU General Public License
     16 along with this program.  If not, see <http://www.gnu.org/licenses/>.
     17 */
    118#include "vceditaccount.h"
    219
     
    825#include <validation/svalidationresult.h>
    926
    10 #include "../../business/BCAccountManager.h"
    11 #include "../../business/BCGatewayManager.h"
     27#include "business/bcaccountmanager.h"
     28#include "business/bcgatewaymanager.h"
    1229
    1330VCEditAccount::VCEditAccount(IAccount* account /* = NULL */, QWidget* parent /* = 0 */)
  • src/ui/vceditaccount/vceditaccount.h

    r91 r92  
     1/*
     2 smssender - A frontend for fast and easy SMS sending over different gateways.
     3 Copyright (C) 2007-2010, gorrión. See http://smssender.gorrion.ch
     4
     5 This program is free software: you can redistribute it and/or modify
     6 it under the terms of the GNU General Public License as published by
     7 the Free Software Foundation, either version 3 of the License, or
     8 (at your option) any later version.
     9
     10 This program is distributed in the hope that it will be useful,
     11 but WITHOUT ANY WARRANTY; without even the implied warranty of
     12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     13 GNU General Public License for more details.
     14
     15 You should have received a copy of the GNU General Public License
     16 along with this program.  If not, see <http://www.gnu.org/licenses/>.
     17 */
    118#ifndef VCEDITACCOUNT_H
    219#define VCEDITACCOUNT_H
  • src/ui/vcsendingdialog/vcsendingdialog.cpp

    r88 r92  
    11/*
    2   smssender - A frontend for fast and easy SMS sending over different gateways.
    3   Copyright (C) 2007-2010, gorrión. See http://smssender.gorrion.ch
     2 smssender - A frontend for fast and easy SMS sending over different gateways.
     3 Copyright (C) 2007-2010, gorrión. See http://smssender.gorrion.ch
    44
    5   This program is free software: you can redistribute it and/or modify
    6   it under the terms of the GNU General Public License as published by
    7   the Free Software Foundation, either version 3 of the License, or
    8   (at your option) any later version.
     5 This program is free software: you can redistribute it and/or modify
     6 it under the terms of the GNU General Public License as published by
     7 the Free Software Foundation, either version 3 of the License, or
     8 (at your option) any later version.
    99
    10   This program is distributed in the hope that it will be useful,
    11   but WITHOUT ANY WARRANTY; without even the implied warranty of
    12   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    13   GNU General Public License for more details.
     10 This program is distributed in the hope that it will be useful,
     11 but WITHOUT ANY WARRANTY; without even the implied warranty of
     12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     13 GNU General Public License for more details.
    1414
    15   You should have received a copy of the GNU General Public License
    16   along with this program.  If not, see <http://www.gnu.org/licenses/>.
    17 */
     15 You should have received a copy of the GNU General Public License
     16 along with this program.  If not, see <http://www.gnu.org/licenses/>.
     17 */
    1818#include "vcsendingdialog.h"
    1919
    2020#include <QTimer>
    2121
    22 #include "business/BCSettings.h"
     22#include "business/bcsettings.h"
    2323
    2424VCSendingDialog::VCSendingDialog(IAccount* account, QWidget *parent)
     
    4040
    4141VCSendingDialog::~VCSendingDialog() {
    42     disconnect(account_->eventMapper(), SIGNAL(statusChanged(const QString&)),
    43                this, SLOT(on_accountStatusChanged(const QString&)));
    44     disconnect(account_->eventMapper(), SIGNAL(progressChanged(int)),
    45                this, SLOT(on_accountProgressChanged(int)));
    46     disconnect(account_->eventMapper(), SIGNAL(smsSendingDone(Account::SendingResult)),
    47                this, SLOT(on_accountSmsSendingDone(Account::SendingResult)));
     42    disconnect(account_->eventMapper(), 0, this, 0);
    4843}
    4944
  • src/ui/vcsendingdialog/vcsendingdialog.h

    r88 r92  
    11/*
    2   smssender - A frontend for fast and easy SMS sending over different gateways.
    3   Copyright (C) 2007-2010, gorrión. See http://smssender.gorrion.ch
     2 smssender - A frontend for fast and easy SMS sending over different gateways.
     3 Copyright (C) 2007-2010, gorrión. See http://smssender.gorrion.ch
    44
    5   This program is free software: you can redistribute it and/or modify
    6   it under the terms of the GNU General Public License as published by
    7   the Free Software Foundation, either version 3 of the License, or
    8   (at your option) any later version.
     5 This program is free software: you can redistribute it and/or modify
     6 it under the terms of the GNU General Public License as published by
     7 the Free Software Foundation, either version 3 of the License, or
     8 (at your option) any later version.
    99
    10   This program is distributed in the hope that it will be useful,
    11   but WITHOUT ANY WARRANTY; without even the implied warranty of
    12   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    13   GNU General Public License for more details.
     10 This program is distributed in the hope that it will be useful,
     11 but WITHOUT ANY WARRANTY; without even the implied warranty of
     12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     13 GNU General Public License for more details.
    1414
    15   You should have received a copy of the GNU General Public License
    16   along with this program.  If not, see <http://www.gnu.org/licenses/>.
    17 */
     15 You should have received a copy of the GNU General Public License
     16 along with this program.  If not, see <http://www.gnu.org/licenses/>.
     17 */
    1818#ifndef VCSENDINGDIALOG_H
    1919#define VCSENDINGDIALOG_H
  • src/ui/vcsettings/vcsettings.cpp

    r90 r92  
    11/*
    2   smssender - A frontend for fast and easy SMS sending over different gateways.
    3   Copyright (C) 2007-2010, gorrión. See http://smssender.gorrion.ch
    4 
    5   This program is free software: you can redistribute it and/or modify
    6   it under the terms of the GNU General Public License as published by
    7   the Free Software Foundation, either version 3 of the License, or
    8   (at your option) any later version.
    9 
    10   This program is distributed in the hope that it will be useful,
    11   but WITHOUT ANY WARRANTY; without even the implied warranty of
    12   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    13   GNU General Public License for more details.
    14 
    15   You should have received a copy of the GNU General Public License
    16   along with this program.  If not, see <http://www.gnu.org/licenses/>.
    17 */
     2 smssender - A frontend for fast and easy SMS sending over different gateways.
     3 Copyright (C) 2007-2010, gorrión. See http://smssender.gorrion.ch
     4
     5 This program is free software: you can redistribute it and/or modify
     6 it under the terms of the GNU General Public License as published by
     7 the Free Software Foundation, either version 3 of the License, or
     8 (at your option) any later version.
     9
     10 This program is distributed in the hope that it will be useful,
     11 but WITHOUT ANY WARRANTY; without even the implied warranty of
     12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     13 GNU General Public License for more details.
     14
     15 You should have received a copy of the GNU General Public License
     16 along with this program.  If not, see <http://www.gnu.org/licenses/>.
     17 */
    1818#include "vcsettings.h"
    1919
     
    2323#include <QNetworkProxy>
    2424
    25 #include "business/BCSettings.h"
    26 #include "business/bcsuffixmanager.h"
    27 
    2825#include <typeconvert.h>
    2926#include <strutils.h>
     27
     28#include "business/bcsettings.h"
     29#include "business/bcsuffixmanager.h"
    3030
    3131const int PAGE_INDEX_GENERAL   = 0;
Note: See TracChangeset for help on using the changeset viewer.