Port to current KDevelop::IBreakpointController interface
In KDevelop master IBreakpointController has deprecated some APIs.
The porting of kdev-python over the new interface remains to be done.
Available public:
interface for IBreakpointController
is:
explicit IBreakpointController(IDebugSession* parent);
virtual void breakpointAdded(int row);
virtual void breakpointModelChanged(int row, BreakpointModel::ColumnFlags columns);
virtual void breakpointAboutToBeDeleted(int row);
Available protected:
interface for IBreakpointController
is:
IDebugSession *debugSession() const;
BreakpointModel *breakpointModel() const;
void updateState(int row, Breakpoint::BreakpointState state);
void updateHitCount(int row, int hitCount);
void updateErrorText(int row, const QString& errorText);
void notifyHit(int row, const QString & msg);
The to be removed functions from IBreakpointController
are:
void breakpointStateChanged(Breakpoint* breakpoint);
void setHitCount(Breakpoint* breakpoint, int count);
void error(Breakpoint* breakpoint, const QString& msg, Breakpoint::Column column);
void hit(Breakpoint* breakpoint, const QString& msg = QString());
void sendMaybeAll();
virtual void sendMaybe(Breakpoint *breakpoint) = 0;
The to be removed data members from IBreakpointController
are:
QMap<const Breakpoint*, QSet<Breakpoint::Column> > m_dirty;
QSet<const Breakpoint*> m_pending;
QMap<const Breakpoint*, QSet<Breakpoint::Column> > m_errors;
int m_dontSendChanges;
Blocks progress on: kdevelop!492
Additionally, it is advisable for any porting effort that works on this to also remove the use of the following functions:
bool KDevelop::Breakpoint::deleted() const;
void KDevelop::Breakpoint::setDeleted(); Has now already been removed.
Edited by Jarmo Tiitto