File tree 2 files changed +15
-16
lines changed
2 files changed +15
-16
lines changed Original file line number Diff line number Diff line change 10
10
11
11
void License::printLicenseHash () const
12
12
{
13
- qDebug () << _licenseHash ;
13
+ qDebug () << m_licenseHash ;
14
14
}
15
15
16
16
uint License::generateLicenseHash (QString addr)
@@ -29,30 +29,30 @@ void License::saveToFile(QString fileName, QString path)
29
29
}
30
30
31
31
QTextStream stream (&file);
32
- stream << _licenseHash ;
32
+ stream << m_licenseHash ;
33
33
}
34
34
35
35
QDate License::getExpiryDate () const
36
36
{
37
- return _expiryDate ;
37
+ return m_expiryDate ;
38
38
}
39
39
40
40
uint License::getLicenseHash () const
41
41
{
42
- return _licenseHash ;
42
+ return m_licenseHash ;
43
43
}
44
44
45
45
QString License::getMacAddress () const
46
46
{
47
- return _macAddress ;
47
+ return m_macAddress ;
48
48
}
49
49
50
50
void License::setExpiryDate (QDate expiry)
51
51
{
52
- _expiryDate = expiry;
52
+ m_expiryDate = expiry;
53
53
}
54
54
55
55
void License::setMacAddress (QString mac)
56
56
{
57
- _macAddress = mac;
57
+ m_macAddress = mac;
58
58
}
Original file line number Diff line number Diff line change @@ -11,23 +11,22 @@ class License
11
11
public:
12
12
// Constructors
13
13
License () :
14
- _macAddress (" " ), _expiryDate (QDate::currentDate()), _licenseHash (000 )
14
+ m_macAddress (" " ), m_expiryDate (QDate::currentDate()), m_licenseHash (000 )
15
15
{
16
16
saveToFile (QString (" test.txt" ));
17
17
}
18
18
19
19
License (QString mac):
20
- _macAddress (mac), _expiryDate (QDate::currentDate())
20
+ m_macAddress (mac), m_expiryDate (QDate::currentDate())
21
21
{
22
- _licenseHash = generateLicenseHash (_macAddress );
22
+ m_licenseHash = generateLicenseHash (m_macAddress );
23
23
saveToFile (QString (" test.txt" ));
24
24
}
25
25
26
26
License (QString mac, QDate expiry) :
27
- _macAddress (mac),
28
- _expiryDate (expiry)
27
+ m_macAddress (mac), m_expiryDate(expiry)
29
28
{
30
- _licenseHash = generateLicenseHash (_macAddress );
29
+ m_licenseHash = generateLicenseHash (m_macAddress );
31
30
saveToFile (QString (" test.txt" ));
32
31
}
33
32
@@ -50,9 +49,9 @@ class License
50
49
void setMacAddress (QString mac);
51
50
52
51
private:
53
- uint _licenseHash ;
54
- QDate _expiryDate ;
55
- QString _macAddress ;
52
+ uint m_licenseHash ;
53
+ QDate m_expiryDate ;
54
+ QString m_macAddress ;
56
55
};
57
56
58
57
#endif // LICENSE_H
You can’t perform that action at this time.
0 commit comments