OpendTect-6_4  6.4
issuereporter.h
Go to the documentation of this file.
1 #ifndef issuereporter_h
2 #define issuereporter_h
3 
4 /*+
5 ________________________________________________________________________
6 
7  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
8  Author: K. Tingdahl
9  Date: June 2012
10  RCS: $Id$
11 ________________________________________________________________________
12 
13 -*/
14 
15 #include "networkmod.h"
16 #include "bufstring.h"
17 #include "uistring.h"
18 
19 namespace System
20 {
21 
22 
23 /*Class that can post a crash-report to OpendTect's website */
24 
26 { mODTextTranslationClass(IssueReporter);
27 public:
28  IssueReporter( const char* hostname = 0,
29  const char* path = 0 );
30 
31  bool readReport(const char* filename);
32  bool setDumpFileName(const char* filename);
33  BufferString& getReport() { return report_; }
34  const OD::String& getReport() const { return report_; }
35  bool isBinary() const { return isbinary_; }
36 
37  bool send();
38  const char* filePath() const { return crashreportpath_; }
39  uiString errMsg() const { return errmsg_; }
40 
41  uiString getMessage() const { return message_; }
43 
44  bool parseCommandLine();
45 
46 protected:
47 
48  void fillBasicReport(const char* filename);
49 
56  bool isbinary_;
57 };
58 
59 
60 
61 
62 } //Namespace
63 
64 #endif
#define mExpClass(module)
Definition: commondefs.h:160
uiString message_
Definition: issuereporter.h:55
Definition: jobcommunic.h:24
const char * filePath() const
Definition: issuereporter.h:38
#define mODTextTranslationClass(clss)
Definition: uistring.h:38
BufferString path_
Definition: issuereporter.h:51
bool isbinary_
Definition: issuereporter.h:56
bool isBinary() const
Definition: issuereporter.h:35
Definition: uistring.h:89
BufferString crashreportpath_
Definition: issuereporter.h:54
uiString errmsg_
Definition: issuereporter.h:52
BufferString report_
Definition: issuereporter.h:53
encapsulates the read-access-only part of strings in OD.
Definition: odstring.h:31
const OD::String & getReport() const
Definition: issuereporter.h:34
BufferString host_
Definition: issuereporter.h:50
Definition: issuereporter.h:25
Definition: issuereporter.h:19
OD::String with its own variable length buffer. The buffer has a guaranteed minimum size...
Definition: bufstring.h:40
BufferString errmsg_
Definition: horizontracker.h:119
uiString errMsg() const
Definition: issuereporter.h:39
uiString getMessage() const
Message coming back from website (if any).
Definition: issuereporter.h:41
BufferString & getReport()
Definition: issuereporter.h:33

Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B. V. 2019