MagicSmoke  $VERSION$
srcMTLogin.h
Go to the documentation of this file.
1 //BEGIN OF AUTOMATICALLY GENERATED FILE
2 //DO NOT EDIT THIS FILE DIRECTLY, USE THE XML SOURCE!
3 #ifndef WOBGEN_MTLogin
4 #define WOBGEN_MTLogin
5 
6 
7 #ifndef WOBGEN_MAGICSMOKE__WOB_EXPORT
8 #define WOBGEN_MAGICSMOKE__WOB_EXPORT Q_DECL_IMPORT
9 #endif
10 
11 #include "MTransaction"
12 
13 class MTLogin_Private;
14 
17 {
18  Q_OBJECT
19  private:
21  friend class MTLogin_Private;
22  protected:
29  explicit MTLogin(const QString &ausername,const QString &apassword,const QString &ahostname,const QString &ahostkey,QString iface);
30  public:
32  MTLogin();
34  MTLogin(const MTLogin&);
36  MTLogin& operator=(const MTLogin&);
38  virtual ~MTLogin();
39  private:
40  void netquery();
41  void asyncnetquery();
42  QByteArray encodeData();
43  void decodeData(QByteArray);
44  protected:
45  virtual void endQuery();
46  public:
53  static MTLogin query(const QString &ausername,const QString &apassword,const QString &ahostname,const QString &ahostkey,QString iface="MagicSmoke");
60  static MTLogin asyncQuery(const QString &ausername,const QString &apassword,const QString &ahostname,const QString &ahostkey,QString iface="MagicSmoke");
62  Q_SLOT Nullable<QString> getsessionid()const;
64  Q_SLOT Nullable<qint64> getvalidtill()const;
65  protected:
66  virtual bool canLogRequest()const{return false;}
67 };
68 
70 
71 //END OF AUTOMATICALLY GENERATED FILE
72 #endif
#define WOBGEN_MAGICSMOKE__WOB_EXPORT
Definition: srcMTLogin.h:8
virtual bool canLogRequest() const
Definition: srcMTLogin.h:66
friend class MTLogin
Definition: srcMTLogin.cpp:15
Definition: transaction.h:25
Q_DECLARE_METATYPE(QDomNode)
Definition: srcMTLogin.cpp:12
Attempt to log into the server. Both the user and the host the user is using are verified. The login will fail if the authentication of either of them fails or the user does not have the righ to login from this host.
Definition: srcMTLogin.h:16