Logo Search packages:      
Sourcecode: katalog version File versions  Download package

KURL Katalog::sourceURL ( QStringList &  path  )  const

Returns the original URL of the stored file

Definition at line 328 of file katalog.cpp.

References findNode().

Referenced by readInfo().

{
  KURL url;
  QString catalog = *(path.begin());
  QStringList catalogList;
  catalogList.append(catalog);
  QDomNode catalogNode = findNode(catalogList);
  if(catalogNode.isNull())
    return url;
  
  QString baseURL = catalogNode.toElement().attribute("mount");
  if(baseURL.isEmpty())
    return url;
    
  path.remove(path.begin());
  QString pathURL = path.join("/");
  
  return KURL(baseURL + "/" + pathURL);
}


Generated by  Doxygen 1.6.0   Back to index