Warning, file /kdevelop/kdev-python/debugger/breakpointcontroller.h was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

0001 /*
0002     SPDX-FileCopyrightText: 2012 Sven Brauch <svenbrauch@googlemail.com>
0003 
0004     SPDX-License-Identifier: GPL-2.0-or-later
0005 */
0006 
0007 #ifndef BREAKPOINTCONTROLLER_H
0008 #define BREAKPOINTCONTROLLER_H
0009 
0010 #include <debugger/interfaces/ibreakpointcontroller.h>
0011 #include "debugsession.h"
0012 
0013 using namespace KDevelop;
0014 
0015 namespace Python {
0016 
0017 class BreakpointController : public KDevelop::IBreakpointController
0018 {
0019 Q_OBJECT
0020 public:
0021     BreakpointController(IDebugSession* parent);
0022 public slots:
0023     /**
0024      * @brief Handles events in the debug session.
0025      * It is used here to send breakpoints to the debugger which were created by the user
0026      * before the program was started.
0027      * 
0028      * @param evt passed by kdevplatform, specifies the type of the event.
0029      **/
0030     void slotEvent(IDebugSession::event_t evt);
0031 protected:
0032     /**
0033      * @brief Notify the debugger about a breakpoint update.
0034      * This is triggered if the user clicks the breakpoint bar.
0035      * Deleting breakpoints is also handled here.
0036      * 
0037      * @param breakpoint The breakpoint to update.
0038      **/
0039     void sendMaybe(KDevelop::Breakpoint* breakpoint) override;
0040     DebugSession* session();
0041 };
0042 
0043 }
0044 
0045 #endif // BREAKPOINTCONTROLLER_H