Definition at line 21 of file VP1Authenticator.cxx.
◆ Imp() [1/2]
| VP1Authenticator::Imp::Imp |
( |
VP1Authenticator * | theClass, |
|
|
const QString & | fileInfoUrl ) |
Definition at line 49 of file VP1Authenticator.cxx.
58{
59 #if defined BUILDVP1LIGHT
61 #else
63 #endif
64
65 if(checkAuthEnabled) {
66 QString
logname(
"vp1live-auth.log");
67 if(QFileInfo(logname).
exists() && !QFile(logname).
remove())
68 std::cerr << "VP1Authenticator ERROR: Unable to remove old logfile" << std::endl;
69 else {
70 m_log =
new QFile(logname);
71 if(!
m_log->open(QIODevice::WriteOnly)) {
72 std::cerr << "VP1Authenticator ERROR: Unable to open new logfile for writing" << std::endl;
75 }
76 }
77 }
78}
QNetworkAccessManager * m_netmanager
QNetworkReply * m_netreply
VP1Authenticator * m_theClass
static bool environmentVariableIsOn(const QString &name)
static bool expertSettingIsOn(const QString &type, const QString &name)
bool exists(const std::string &filename)
does a file exist
◆ ~Imp()
| VP1Authenticator::Imp::~Imp |
( |
| ) |
|
◆ Imp() [2/2]
| VP1Authenticator::Imp::Imp |
( |
const Imp & | | ) |
|
|
delete |
◆ connectToAuthenticator()
| void VP1Authenticator::Imp::connectToAuthenticator |
( |
VP1Authenticator * | authenticator | ) |
|
Definition at line 108 of file VP1Authenticator.cxx.
109{
113 authenticator, SLOT(
error(QNetworkReply::NetworkError)));
114#ifndef QT_NO_SSL
116 authenticator, SLOT(
sslErrors(
const QList<QSslError>&)));
117#endif
118}
void sslErrors(const QList< QSslError > &)
◆ displayError()
| void VP1Authenticator::Imp::displayError |
( |
const QString & | message | ) |
|
Definition at line 120 of file VP1Authenticator.cxx.
121{
130 QByteArray logBa(QString(message+"\n").toStdString().c_str());
132 }
133}
◆ getTagAttributeVal()
| QString VP1Authenticator::Imp::getTagAttributeVal |
( |
const QString & | tag, |
|
|
const QString & | attribute ) |
Definition at line 91 of file VP1Authenticator.cxx.
92{
93 QStringMatcher startMatcher(attribute + "=\"",Qt::CaseInsensitive);
94 QStringMatcher endMatcher("\"");
95
96 int startPos = startMatcher.indexIn(tag);
97 if(startPos==-1)
98 return QString("");
99 else {
100 int endPos = endMatcher.indexIn(tag,startPos+startMatcher.pattern().size());
101 if(endPos==-1)
102 return QString("");
103 else
104 return tag.mid(startPos+startMatcher.pattern().size(),endPos-startPos-startMatcher.pattern().size());
105 }
106}
◆ operator=()
| Imp & VP1Authenticator::Imp::operator= |
( |
const Imp & | | ) |
|
|
delete |
◆ m_fileInfoUrl
| QString VP1Authenticator::Imp::m_fileInfoUrl |
◆ m_log
| QFile* VP1Authenticator::Imp::m_log {} |
◆ m_loginServer
| QString VP1Authenticator::Imp::m_loginServer |
◆ m_netmanager
| QNetworkAccessManager* VP1Authenticator::Imp::m_netmanager {} |
◆ m_netreply
| QNetworkReply* VP1Authenticator::Imp::m_netreply {} |
◆ m_theClass
◆ stage
| int VP1Authenticator::Imp::stage {1} |
The documentation for this class was generated from the following file: