1 /***************************************************************************
2 * Copyright (C) 2004 by Kita Developers *
3 * ikemo@users.sourceforge.jp *
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 2 of the License, or *
8 * (at your option) any later version. *
9 ***************************************************************************/
24 @author Hideki Ikemoto
26 class Account : public QObject
29 static Account* instance;
39 bool loginInternal( const QString& userID, const QString& password );
40 static Account* getInstance();
42 void slotReceiveData( KIO::Job* job, const QByteArray& data );
43 void slotResult( KIO::Job* job );
45 static const QString& getSessionID() { return getInstance() ->m_sessionID; }
46 static bool isLogged() { return getInstance() ->m_isLogged; }
47 static bool login( const QString& userID, const QString& password );