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

bool CHMFile::GetFileContentAsString ( QString &  str,
QString  filename,
QString  location 

Puts in the str parameter the contents of the file filename referred by location. If file has not been opened, it is opened, and added into m_chmLoadedFiles.

Definition at line 1095 of file xchmfile.cpp.

References getCHMfilePointer(), GetFileContentAsString(), and m_filename.

      str = QString::null;

      if ( m_filename == filename )
            return GetFileContentAsString (str, location);

      // Load a file if it is not already loaded
      CHMFile * file = getCHMfilePointer (filename);

      if ( !file )
            return false;

      return file->GetFileContentAsString (str, location);

Generated by  Doxygen 1.6.0   Back to index