summaryrefslogtreecommitdiffstats
path: root/kdvi/dvisourcesplitter.h
diff options
context:
space:
mode:
authortoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
committertoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
commit47d455dd55be855e4cc691c32f687f723d9247ee (patch)
tree52e236aaa2576bdb3840ebede26619692fed6d7d /kdvi/dvisourcesplitter.h
downloadtdegraphics-47d455dd55be855e4cc691c32f687f723d9247ee.tar.gz
tdegraphics-47d455dd55be855e4cc691c32f687f723d9247ee.zip
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegraphics@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kdvi/dvisourcesplitter.h')
-rw-r--r--kdvi/dvisourcesplitter.h34
1 files changed, 34 insertions, 0 deletions
diff --git a/kdvi/dvisourcesplitter.h b/kdvi/dvisourcesplitter.h
new file mode 100644
index 00000000..f0028bf2
--- /dev/null
+++ b/kdvi/dvisourcesplitter.h
@@ -0,0 +1,34 @@
+// -*- C++ -*-
+//
+// C++ Interface: dvisourcesplitter
+//
+// Author: Jeroen Wijnhout <Jeroen.Wijnhout@kdemail.net>, (C) 2004
+//
+// Copyright: See COPYING file that comes with this distribution
+//
+
+#ifndef DVI_SOURCEFILESPLITTER_H
+#define DVI_SOURCEFILESPLITTER_H
+
+#include <qfileinfo.h>
+
+class QString;
+
+
+class DVI_SourceFileSplitter
+{
+public:
+ DVI_SourceFileSplitter(const QString & scrlink, const QString & dviFile);
+
+ QString fileName() { return m_fileInfo.fileName(); }
+ QString filePath() { return m_fileInfo.absFilePath(); }
+ bool fileExists() { return m_fileInfo.exists(); }
+
+ Q_UINT32 line() { return m_line; }
+
+private:
+ QFileInfo m_fileInfo;
+ Q_UINT32 m_line;
+ bool m_exists;
+};
+#endif