Source: DataAccess.h


Annotated List
Files
Globals
Hierarchy
Index
/***************************************************************************
 *
 * File:    DataAccess.h
 * Created: Tue Dec 14 1999
 * (C) 1999 by David M. <captjay@superlink.net>
 *
 ***************************************************************************/
/***************************************************************************
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
 ***************************************************************************/

#ifndef DATAACCESS_H
#define DATAACCESS_H

#include <qobject.h>
#include <qlist.h>


class SQLModule;
class UserData;
class ServerData;

typedef QList<ServerData> ServerList;


/**
* @author David M.
* @short Handle access to the database.
*
* This class is a controler. It's primary purpose is to
* direct behavior of several classes with one another.
*/
class DataAccessC : public QObject  {
public: 
  bool connectTo(const QString& host, const QString& dbaseName,
                            const QString& username, const QString& password);
	UserData* createUserData(QString login);
	ServerList* createServerList();
	bool acceptDCCChat(QString nuh);
	static DataAccessC* instance();
	~DataAccessC();
private:
	DataAccessC();
  SQLModule* _db;
  static DataAccessC* _instance;
};

#endif

Generated by: nightsky@centauri on Sat Jan 15 23:06:10 2000, using kdoc 2.0a30.