|
|
/*************************************************************************** xqlSession.h - description ------------------- begin : Mon Jun 26 2000 copyright : (C) 2000 by Raoul Markus email : raoul.markus@arcormail.de ***************************************************************************/ /*************************************************************************** * * * 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 _xqlSession_h #define _xqlSession_h #include "xqltypes.h" #include "xqlodbc.h" #include "xqlexception.h" // #include "xqlobjectfactory.h" class xqlUser; class xqlObjectFactory; class xqlSession { protected: /** depreciated, use mXqlUser instead */ xqlUserId userId; xqlOdbc* mXqlOdbc; xqlUser* mXqlUser; public: xqlSession(xqlOdbc* pThisOdbc ); virtual const xqlUserId getUserId(); virtual ~xqlSession(){ } //Del by KDevelop: virtual bool setUser (const char* username, const char* passwd); virtual const char* className () const; /** gives the database connection of the session */ virtual xqlOdbc * getDatabaseConnection(); /** returns a pointer to the current user of this session */ xqlUser * getUser(); /** tells if this session has a valid user. */ bool isLoggedIn(); /** creates the initial tables in the database. May only be used once! */ void initScheme(); /** drops the whole database scheme. all data are lost. */ public: // Public attributes /** */ xqlObjectFactory * mObjectFactory; void dropScheme(); /** No descriptions */ /** returns the ObjectFactory */ xqlObjectFactory * getObjectFactory(); }; #endif
Generated by: markus on hobbes on Fri Mar 29 16:15:24 2002, using kdoc 2.0a53. |