X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/12f5e1e78fe906050ff2fee9529476db332633f0..8ed522d9aa0cc52a760a872860b622134b505e8c:/interface/wx/debugrpt.h diff --git a/interface/wx/debugrpt.h b/interface/wx/debugrpt.h index 04e52b1d97..310b39a967 100644 --- a/interface/wx/debugrpt.h +++ b/interface/wx/debugrpt.h @@ -44,7 +44,7 @@ public: chose to cancel report generation or removed all files from it. */ - virtual bool Show(wxDebugReport& dbgrpt) const; + virtual bool Show(wxDebugReport& dbgrpt) const = 0; }; @@ -71,7 +71,7 @@ public: Returns the full path of the compressed file (empty if creation failed). */ - const wxString GetCompressedFileName() const; + const wxString& GetCompressedFileName() const; }; @@ -135,7 +135,7 @@ public: constructor with all the files it contains. Call Reset() to prevent this from happening. */ - ~wxDebugReport(); + virtual ~wxDebugReport(); /** Adds all available information to the report. Currently this includes a @@ -148,7 +148,7 @@ public: Add an XML file containing the current or exception context and the stack trace. */ - bool AddContext(Context ctx); + virtual bool AddContext(Context ctx); /** The same as calling AddContext(Context_Current). @@ -167,7 +167,7 @@ public: (@c dbghlp32.dll can be installed under older systems to make minidumps available). */ - bool AddDump(Context ctx); + virtual bool AddDump(Context ctx); /** The same as calling AddContext(Context_Exception). @@ -188,7 +188,7 @@ public: @see GetDirectory(), AddText() */ - void AddFile(const wxString& filename, const wxString& description); + virtual void AddFile(const wxString& filename, const wxString& description); /** This is a convenient wrapper around AddFile(). It creates the file with @@ -205,25 +205,25 @@ public: This function may be overridden to add arbitrary custom context to the XML context file created by AddContext(). By default, it does nothing. */ - void DoAddCustomContext(wxXmlNode* nodeRoot); + virtual void DoAddCustomContext(wxXmlNode* nodeRoot); /** This function may be overridden to modify the contents of the exception tag in the XML context file. */ - bool DoAddExceptionInfo(wxXmlNode* nodeContext); + virtual bool DoAddExceptionInfo(wxXmlNode* nodeContext); /** This function may be overridden to modify the contents of the modules tag in the XML context file. */ - bool DoAddLoadedModules(wxXmlNode* nodeModules); + virtual bool DoAddLoadedModules(wxXmlNode* nodeModules); /** This function may be overridden to modify the contents of the system tag in the XML context file. */ - bool DoAddSystemInfo(wxXmlNode* nodeSystemInfo); + virtual bool DoAddSystemInfo(wxXmlNode* nodeSystemInfo); /** This method should be used to construct the full name of the files @@ -232,7 +232,7 @@ public: @return The name of the temporary directory used for the files in this report. */ - const wxString GetDirectory() const; + const wxString& GetDirectory() const; /** Retrieves the name (relative to GetDirectory()) and the description of @@ -250,7 +250,7 @@ public: Gets the name used as a base name for various files, by default wxApp::GetAppName() is used. */ - wxString GetReportName() const; + virtual wxString GetReportName() const; /** Returns @true if the object was successfully initialized. If this @@ -341,6 +341,6 @@ public: returned. Value returned by this function becomes the return value of wxDebugReport::Process(). */ - bool OnServerReply(const wxArrayString& reply); + virtual bool OnServerReply(const wxArrayString& reply); };