Commit e06f0265 authored by Dominik Haumann's avatar Dominik Haumann
Browse files

add activeDocumentUrl dbus call

BUG: 101628
parent daea2a02
/* This file is part of the KDE project
Copyright (C) 2003 Ian Reinhart Geiser <geiseri@kde.org>
Copyright (C) 2011 Dominik Haumann <dhaumann kde org>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
......@@ -25,5 +25,15 @@ KateMainWindowAdaptor::KateMainWindowAdaptor (KateMainWindow *w)
//((QString("KateMainWindow#%1").arg(w->mainWindowNumber())).toLatin1()), m_w (w)
{
}
// kate: space-indent on; indent-width 2; replace-tabs on;
QString KateMainWindowAdaptor::activeDocumentUrl() const
{
return m_w->activeDocumentUrl().url();
}
uint KateMainWindowAdaptor::mainWindowNumber() const
{
return m_w->mainWindowNumber();
}
// kate: space-indent on; indent-width 2; replace-tabs on;
/* This file is part of the KDE project
Copyright (C) 2003 Ian Reinhart Geiser <geiseri@kde.org>
Copyright (C) 2011 Dominik Haumann <dhaumann kde org>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
......@@ -18,6 +18,7 @@
#ifndef _katemainwindow_adaptor_h_
#define _katemainwindow_adaptor_h_
#include <QtDBus/QtDBus>
class KateMainWindow;
......@@ -30,6 +31,10 @@ class KateMainWindowAdaptor : public QDBusAbstractAdaptor
public:
KateMainWindowAdaptor (KateMainWindow *w);
public Q_SLOTS:
QString activeDocumentUrl() const;
uint mainWindowNumber() const;
private:
KateMainWindow *m_w;
};
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment