ftpviewer.h

Go to the documentation of this file.
00001 #ifndef ftpviewer_included_h
00002 #define FTPviewer_included_h
00003 //
00004 // Copyright 2002, Lowell Boggs Jr.
00005 //
00006 // This file or directory, containing source code for a computer program,
00007 // is Copyrighted by Lowell Boggs, Jr.  987 Regency Drive, Lewisville
00008 // TX (USA), 75067.  You may use, copy, modify, and distribute this
00009 // source file without charge or obligation so long as you agree to
00010 // the following:
00011 //
00012 //  1.  You must indemnify Lowell Boggs against any and all financial
00013 //      obligations caused by its use, misuse, function, or malfunction.
00014 //      Further, you acknowledge that there is no warranty of any kind,
00015 //      whatsoever.
00016 //
00017 //  2.  You agree not to attempt to patent any portion of this original
00018 //      work -- though you may attempt to patent your own extensions to
00019 //      it if you so choose.
00020 //
00021 //  3.  You keep this copyright notice with the file and all copies
00022 //      of the file and do not change it anyway except language translation.
00023 //
00024 // You are responsible for enforcing your own compliance with these
00025 // conditions and may not use this source file if you cannot agree to the
00026 // above terms and conditions.
00027 //
00028 // Warning:  not all files in this directory structure are covered by the
00029 // same copyright.  Some of them are part of the GNU source distribution
00030 // and you must obey the GPL copyright for those files.
00031 
00035 
00036 #include <cxxtls/viewer.h>
00037 
00038 namespace cxxtls
00039 {
00040 
00041 class FileName;
00042 
00043 class FTPviewer
00044 : public Viewer
00070 //
00071 {
00072 
00073 public:
00074 
00075   struct Impl;
00077 
00078   std::auto_ptr<Impl> impl_; 
00079 
00080   FTPviewer(ViewerManager    *     vm, 
00081             FileName    const&     local_directory,
00082             std::string const&     remote_host,
00083             std::string const&     userid,
00084             std::string const&     password,
00085             std::string const&     remote_directory=std::string()
00086            );
00087 
00088  ~FTPviewer();
00089 
00090   virtual void operator() ( CursorWindow::viewport *     vp,
00091                             int                          cmd
00092                           );
00097 
00098   virtual bool handle_event( CursorWindow::input_event const * event,
00099                              CursorWindow::viewport          * viewport
00100                            );
00105 
00106   virtual void help();  
00107 
00108 
00109 
00110   static Viewer* app(ViewerManager*vm, std::string &fullname);
00111     //
00118 
00119   static std::string app_name;
00120     //
00123 
00124   std::string const& application_name() const { return app_name; }
00125     //
00129 
00130   std::string description() const;
00131     //
00133 
00134 
00135 };
00136 } // namespace cxxtls
00137 #endif
Generated on Wed Feb 29 22:50:04 2012 for CXXUtilities by  doxygen 1.6.3