source: SMSSender/lib/libdatatypes/src/eventmappers/sloginaccounteventmapper.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: 930 bytes
Line 
1/*
2 * loginaccounteventmapper.h
3 *
4 *  Created on: Jan 16, 2010
5 *      Author: saemy
6 */
7
8#ifndef SLOGINACCOUNTEVENTMAPPER_H_
9#define SLOGINACCOUNTEVENTMAPPER_H_
10
11#include "eventinterfaces.h"
12#include "saccounteventmapper.h"
13
14class AbstractLoginAccount;
15
16class SLoginAccountEventMapper: public SAccountEventMapper,
17                                public ILoginAccountEvents {
18    Q_OBJECT
19    Q_INTERFACES(ILoginAccountEvents)
20
21public:
22    explicit SLoginAccountEventMapper(AbstractLoginAccount* account)
23      : SAccountEventMapper(reinterpret_cast<IAccount*>(account)) // Because of circular reference...
24    {};
25    AbstractLoginAccount* account() const { return reinterpret_cast<AbstractLoginAccount*>(SAccountEventMapper::account()); }
26
27signals:
28    void loggedIn();
29    void loggedOut();
30
31private:
32    AbstractLoginAccount* account_;
33};
34
35#include "abstract/abstractloginaccount.h"
36
37#endif /* SLOGINACCOUNTEVENTMAPPER_H_ */
Note: See TracBrowser for help on using the repository browser.