ufinderCom.hpp

00001 /* ==================================================== ======== ======= *
00002  *
00003  *  ufinderCom.hpp (part of UFinder)
00004  *  Ubit Project
00005  *  Author: Eric Lecolinet
00006  *  Part of the Ubit Toolkit: A Brick Construction Game Model for Creating GUIs
00007  *  (C) 1999-2006 / Eric Lecolinet / ENST Paris / http://www.enst.fr/~elc/ubit
00008  *
00009  * ***********************************************************************
00010  * COPYRIGHT NOTICE : 
00011  * THIS PROGRAM IS DISTRIBUTED WITHOUT ANY WARRANTY AND WITHOUT EVEN THE 
00012  * IMPLIED WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. 
00013  * YOU CAN REDISTRIBUTE IT AND/OR MODIFY IT UNDER THE TERMS OF THE GNU 
00014  * GENERAL PUBLIC LICENSE AS PUBLISHED BY THE FREE SOFTWARE FOUNDATION; 
00015  * EITHER VERSION 2 OF THE LICENSE, OR (AT YOUR OPTION) ANY LATER VERSION.
00016  * SEE FILES 'COPYRIGHT' AND 'COPYING' FOR MORE DETAILS.
00017  * ***********************************************************************
00018  * ==================================================== [(c)Elc] ======= *
00019  * ==================================================== ======== ======= */
00020 
00021 #ifndef _ufinderCom_hpp_
00022 #define _ufinderCom_hpp_
00023 //pragma ident  "@(#)ufinderCom.hpp     ubit:05.05.00"
00024 #include <pthread.h>
00025 namespace ubit {
00026 
00027 /* ==================================================== ===== ======= */
00030 struct UFinderCom {
00031   UFinderCom(UFinder*, const UStr& path, int path_type);
00032 
00033 protected:
00034   enum {INVALID_URL=-2};
00035   static void loadDoc(UFinderCom*);  // pthread_create() callback
00036   void showDoc();
00037 
00038   pthread_t thread_id;
00039   UFinder* fd;
00040   UStr path, cachepath;
00041   int type, mode;
00042   int stat;
00043 };
00044 
00045 }
00046 #endif
00047 /* ==================================================== [TheEnd] ======= */
00048 /* ==================================================== [(c)Elc] ======= */

Generated on Mon Jan 29 00:20:38 2007 for Ubit by  doxygen 1.4.7