source: SMSSender/lib/libdatatypes/src/exceptions/eloginaccountloginexception.h @ 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: 810 bytes
Line 
1/*
2 * ELoginAccountLoginException.h
3 *
4 *  Created on: Jan 4, 2010
5 *      Author: saemy
6 */
7
8#ifndef ELOGINACCOUNTLOGINEXCEPTION_H_
9#define ELOGINACCOUNTLOGINEXCEPTION_H_
10
11#include <QString>
12
13#include "eexception.h"
14
15namespace LoginAccount {
16
17    class ELoginException: public EException {
18    public:
19        enum Purpose {
20            InvalidLoginData,
21            Unknown
22        };
23
24        explicit ELoginException(const Purpose& purpose)
25            : EException("")
26            , purpose_(purpose)
27        {}
28
29        explicit ELoginException(const Purpose& purpose, const QString& msg)
30            : EException(msg)
31            , purpose_ (purpose)
32        {}
33
34        Purpose purpose(){ return purpose_; }
35
36    private:
37        Purpose purpose_;
38    };
39}
40
41#endif /* ELOGINACCOUNTLOGINEXCEPTION_H_ */
Note: See TracBrowser for help on using the repository browser.