Debian Codegraph @

HercStudio/Recovery.cpp

raw symbols SCIP
1 /*
2 * File: Recovery.cpp
3 *
4 * Author: Jacob Dekel
5 * Created on: Aug 7, 2009
6 *
7 * Copyright (c) 2009-2013 Jacob Dekel
8 * $Id$
9 *
10 * This program is free software: you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License as published by
12 * the Free Software Foundation, either version 3 of the License, or
13 * (at your option) any later version.
14 *
15 * This program is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
19 *
20 * You should have received a copy of the GNU General Public License
21 * along with this program. If not, see <http://www.gnu.org/licenses/>.
22 *
23 */
24
25 #include "Recovery.h"cxx . . $ `<file>/HercStudio/Recovery.h`/
26 #include "NamedPipe.h"cxx . . $ `<file>/HercStudio/NamedPipe.h`/
27
28 #include <sstream>
29
30 Recoverycxx . . $ Recovery#::Recoverycxx . . $ Recovery#Recovery(108f35f7aa7f3cf9).(QWidgetcxx . . $ QWidget# *parent)
31 : QDialogcxx . . $ QDialog#QDialog(872e7b0c281abd8d).(parent)
32 {
33 uicxx . . $ Recovery#ui..setupUicxx . . $ Ui_RecoveryClass#setupUi(d194de0c0f68c28b).(this);
34 mHerculesConfcxx . . $ Recovery#mHerculesConf. =cxx . . $ std/__cxx11/basic_string#`operator=`(706c69e8c742c906). readHerculesConfcxx . . $ Recovery#readHerculesConf(efd28698952f529a).();
35
36 uicxx . . $ Recovery#ui..configurationFilenamecxx . . $ Ui_RecoveryClass#configurationFilename.->setTextcxx . . $ QLabel#setText(3520e46b33348bf6).(mHerculesConfcxx . . $ QString#QString(85c52e162fed56f9)..c_strcxx . . $ std/__cxx11/basic_string#c_str(1016ee5406d91ab9).());
37 stdcxx . . $ std/::stringstreamcxx . . $ std/stringstream# sscxx . . $ std/__cxx11/basic_stringstream#basic_stringstream(49f6e7a06ebc5aa8).;
38 ss <<cxx . . $ std/basic_ostream#`operator<<`(23b6575433a77e57). NamedPipecxx . . $ NamedPipe#::getInstancecxx . . $ NamedPipe#getInstance(464fad7f4e589b3).().getHerculesPidcxx . . $ NamedPipe#getHerculesPid(b126dc7c1de90089).();
39 uicxx . . $ Recovery#ui..processNumbercxx . . $ Ui_RecoveryClass#processNumber.->setTextcxx . . $ QLabel#setText(3520e46b33348bf6).(sscxx . . $ QString#QString(85c52e162fed56f9)..strcxx . . $ std/__cxx11/basic_stringstream#str(d33e1a6fd36255f7).().c_strcxx . . $ std/__cxx11/basic_string#c_str(1016ee5406d91ab9).());
40
41 connectcxx . . $ QObject#connect(158df1d9a01a3410).(uicxx . . $ Recovery#ui..exitButtoncxx . . $ Ui_RecoveryClass#exitButton., SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!(clicked()), this , SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!(exit()));
42 connectcxx . . $ QObject#connect(158df1d9a01a3410).(uicxx . . $ Recovery#ui..attachButtoncxx . . $ Ui_RecoveryClass#attachButton., SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!(clicked()), this , SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!(recover()));
43 connectcxx . . $ QObject#connect(158df1d9a01a3410).(uicxx . . $ Recovery#ui..skipButtoncxx . . $ Ui_RecoveryClass#skipButton., SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!(clicked()), this , SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!(skip()));
44 }
45
46 Recoverycxx . . $ Recovery#::~cxx . . $ Recovery#`~Recovery`(49f6e7a06ebc5aa8).Recoverycxx . . $ Recovery#()
47 {
48
49 }
50
51 void Recoverycxx . . $ Recovery#::exitcxx . . $ Recovery#exit(49f6e7a06ebc5aa8).()
52 {
53 mHerculesConfcxx . . $ Recovery#mHerculesConf. =cxx . . $ std/__cxx11/basic_string#`operator=`(978ca1133b5f6e74). "!";
54 this->closecxx . . $ QWidget#close(c9857a73d68e59ba).();
55 }
56
57 void Recoverycxx . . $ Recovery#::skipcxx . . $ Recovery#skip(49f6e7a06ebc5aa8).()
58 {
59 mHerculesConfcxx . . $ Recovery#mHerculesConf. =cxx . . $ std/__cxx11/basic_string#`operator=`(978ca1133b5f6e74). "";
60 this->closecxx . . $ QWidget#close(c9857a73d68e59ba).();
61 }
62
63
64 void Recoverycxx . . $ Recovery#::recovercxx . . $ Recovery#recover(49f6e7a06ebc5aa8).()
65 {
66 this->closecxx . . $ QWidget#close(c9857a73d68e59ba).();
67 }
68
69 stdcxx . . $ std/::stringcxx . . $ std/string# Recoverycxx . . $ Recovery#::getHerculesConfcxx . . $ Recovery#getHerculesConf(efd28698952f529a).()
70 {
71 return mHerculesConfcxx . . $ std/__cxx11/basic_string#basic_string(a47f53d4115f6ce5).;
72 }
73
74 stdcxx . . $ std/::stringcxx . . $ std/string# Recoverycxx . . $ Recovery#::readHerculesConfcxx . . $ Recovery#readHerculesConf(efd28698952f529a).()
75 {
76 stdcxx . . $ std/::stringcxx . . $ std/string# cmdLine = NamedPipecxx . . $ std/__cxx11/basic_string#basic_string(3bc0f77cdfbaa67f).::getInstancecxx . . $ NamedPipe#getInstance(464fad7f4e589b3).().getHerculesCommandlinecxx . . $ NamedPipe#getHerculesCommandline(efd28698952f529a).();
77 int ind = cmdLine.findcxx . . $ std/__cxx11/basic_string#find(91d5177563f5ce1b).("-d -f");
78 stdcxx . . $ std/::stringcxx . . $ std/string# past_f = cmdLinecxx . . $ std/__cxx11/basic_string#basic_string(3bc0f77cdfbaa67f)..substrcxx . . $ std/__cxx11/basic_string#substr(149c655009c9bbd2).(ind+6);
79 ind = past_f.findcxx . . $ std/__cxx11/basic_string#find(91d5177563f5ce1b).(" ");
80 return past_fcxx . . $ std/__cxx11/basic_string#basic_string(3bc0f77cdfbaa67f)..substrcxx . . $ std/__cxx11/basic_string#substr(149c655009c9bbd2).(0,ind);
81 }