summaryrefslogtreecommitdiffstats
path: root/kdvi/dvisourcesplitter.h
blob: 35b84e7ad93560339a1f3aee5c18e4d8e5b0cc27 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
// -*- C++ -*-
//
// C++ Interface: dvisourcesplitter
//
// Author: Jeroen Wijnhout <[email protected]>, (C) 2004
//
// Copyright: See COPYING file that comes with this distribution
//

#ifndef DVI_SOURCEFILESPLITTER_H
#define DVI_SOURCEFILESPLITTER_H

#include <tqfileinfo.h>

class TQString;


class DVI_SourceFileSplitter 
{
public:
  DVI_SourceFileSplitter(const TQString & scrlink, const TQString & dviFile);
  
  TQString  fileName() { return m_fileInfo.fileName(); }
  TQString  filePath() { return m_fileInfo.absFilePath(); }
  bool     fileExists() { return m_fileInfo.exists(); }
  
  TQ_UINT32 line()     { return m_line; }
  
private:
  TQFileInfo m_fileInfo;
  TQ_UINT32  m_line;
  bool      m_exists; 
};
#endif