source: SMSSender/lib/libdatatypes/src/validation/sstdaccountvalidator.cpp @ 71:415b45c71663

3.0
Last change on this file since 71:415b45c71663 was 71:415b45c71663, checked in by Sämy Zehnder <saemy.zehnder@…>, 12 years ago
  • Reorganized all the libraries. libinterfaces and libgateways are removed now and libdatatypes contains now all these files.
File size: 550 bytes
Line 
1/*
2 * BCAccountValidator.cpp
3 *
4 *  Created on: Dec 18, 2009
5 *      Author: saemy
6 */
7
8#include "sstdaccountvalidator.h"
9
10#include <QObject>
11#include <QRegExp>
12#include <QString>
13
14#include "svalidationresult.h"
15
16IValidationResult* SStdAccountValidator::validate() const {
17    IValidationResult* result = new SValidationResult();
18
19    if (account()->name() == "") {
20        result->addError(QObject::tr("The name of the account can't be empty."));
21    }
22
23    return result;
24}
25
26IAccount* SStdAccountValidator::account() const {
27    return account_;
28}
Note: See TracBrowser for help on using the repository browser.