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

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