00001 //<<<<<< INCLUDES >>>>>> 00002 00003 #include "Iguana/Studio/interface/IgFileLocalProxy.h" 00004 #include <qurl.h> 00005 #include <classlib/iobase/Filename.h> 00006 00007 //<<<<<< PRIVATE DEFINES >>>>>> 00008 //<<<<<< PRIVATE CONSTANTS >>>>>> 00009 //<<<<<< PRIVATE TYPES >>>>>> 00010 //<<<<<< PRIVATE VARIABLE DEFINITIONS >>>>>> 00011 //<<<<<< PUBLIC VARIABLE DEFINITIONS >>>>>> 00012 //<<<<<< CLASS STRUCTURE INITIALIZATION >>>>>> 00013 //<<<<<< PRIVATE FUNCTION DEFINITIONS >>>>>> 00014 //<<<<<< PUBLIC FUNCTION DEFINITIONS >>>>>> 00015 //<<<<<< MEMBER FUNCTION DEFINITIONS >>>>>> 00016 00017 const char * 00018 IgFileLocalProxy::catalogLabel (void) 00019 { return "file"; } 00020 00021 std::string 00022 IgFileLocalProxy::fetch (const std::string &file) 00023 { 00024 std::string filename (QUrl (file).path ().latin1 ()); 00025 if (lat::Filename (filename).exists ()) 00026 return filename; 00027 else 00028 // FIXME: throw an exception 00029 ; 00030 return ""; 00031 }