|
|
* 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. * * *************************************************************************
| xqlStore (xqlSession * pThisSession)
| xqlStore |
| ~xqlStore ()
| ~xqlStore |
| void setUser (const std::string pUser)
| setUser |
sets the username
| void initStoreOnServer ()
| initStoreOnServer |
trys to open an ftp-connection to the server, and trys to create the initial directories to store the files.
| void getFile (xqlid pFileId, std::string pFileName)
| getFile |
gets a file, given by pFileId out of the store and stores it under the given filename
| int putFile (const std::string pFileName)
| putFile |
creates a new fileId for the given file and stores it into the store. returns the new fileid for this file.
| void setPasswd (const std::string pPasswd)
| setPasswd |
sets the password for this function
| char * className ()
| className |
[virtual]
Reimplemented from xqlObject.
| bool createInstance ()
| createInstance |
creates a new instance of the object. an id is given, space is allocated in the database.
Reimplemented from xqlObject.
| bool loadInstance (int pInstId)
| loadInstance |
loads the instance given by pInstId from the database.
Reimplemented from xqlObject.
| void setServer (const std :: string pServer)
| setServer |
sets the server address (IP- or full qualified domain) for this store
| void setPath (const std :: string pDir)
| setPath |
sets the server path for this store. Under this path, all files are stored on the ftp-server Do not change the server path if files are already in this store. they would be lost if you do not copy the files by hand.
| std::string getFilename (xqlOdbc * pConn, xqlid pFileId)
| getFilename |
[static]
returns the filename for a given file id.
| int getStoreOfFile (xqlOdbc * pConn, int pFileId)
| getStoreOfFile |
[static]
| std::string filename (std::string pPathname)
| filename |
| xqlFtp * mFtp | mFtp |
[private]
| std::string mFtpUserName | mFtpUserName |
[private]
| std::string mFtpUserPasswd | mFtpUserPasswd |
[private]
| std::string mFtpServer | mFtpServer |
[private]
| std::string mFtpDirectory | mFtpDirectory |
[private]
| void connect ()
| connect |
[private]
connects the xqlftp and brings it into state to perform actions
| int getNewFileId ()
| getNewFileId |
[private]
gets a unique fileid (for this store)
| std::string getNewFileName (xqlid pFileId)
| getNewFileName |
[private]
| std::string getStoredFilename (xqlid pFileId)
| getStoredFilename |
[private]
| Generated by: markus on hobbes on Fri Mar 29 16:15:24 2002, using kdoc 2.0a53. |