Source: xql/xqlcmdlineif.h


Annotated List
Files
Globals
Hierarchy
Index
/***************************************************************************
                          xqlcmdlineif.h  -  description
                             -------------------
    begin                : Thu Sep 7 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 XQLCMDLINEIF_H
#define XQLCMDLINEIF_H

#include "xqlsession.h"
#include "xqluser.h"
#include 


/**This class provides a simple command line interface to the xql engine
  *@author Raoul Markus
  */

class xqlCmdLineIF : public xqlSession  {
public: 
	xqlCmdLineIF(xqlOdbc* ptThisOdbc);
	~xqlCmdLineIF();
  /** opens the user interface, waits for input on stdin,
executes commands and returns eventually
output on stdout. */
  void run();
  /** creates a new user */
  void createNewUser(const char * name, const char * passwd);
  /** Compares a string to a give keyword */
  bool cmpKeyWord(const char * pString, const char * pKeyWord);
  /** No descriptions */
  void readIcon(char * pFileName);
  /** No descriptions */
  void createStore(const char * server, const char * user, const char * passwd, const char * dir);
  /** No descriptions */
  void importFile(const int pStore, const char * pFile);
  /** No descriptions */
  void exportFile(const xqlid pFileId, const char* pFilename);
  /** gets an icon from the database by its id and stores it into the file given by filename */
  void getIcon(xqlid id, char * pFileName);
  /** parses a command line and returns all arguments */

private: // Private attributes
  /**  */
  char * par[20];
  char * cmd;
  int argc;
private: // Private methods
  /** parses the variables cmd, par, for an tries to execute the 
given cmd */
  void interprete();
  /** echos the input of the user */
  void echo();

};

#endif

Generated by: markus on hobbes on Fri Mar 29 16:15:24 2002, using kdoc 2.0a53.