comparison ui/certificate.h @ 1108:9bb9932bb819

Revert commit 1101 the inactive manual changes were a bad idea
author Andre Heinecke <andre.heinecke@intevation.de>
date Mon, 15 Sep 2014 17:47:12 +0200
parents 2b3526ef2d69
children 2a1aa9df8f11
comparison
equal deleted inserted replaced
1107:51d3b361f17a 1108:9bb9932bb819
134 static QList<Certificate> fromFileName (const QString& file_name); 134 static QList<Certificate> fromFileName (const QString& file_name);
135 135
136 friend inline bool operator==(const Certificate& lhs, const Certificate& rhs) { 136 friend inline bool operator==(const Certificate& lhs, const Certificate& rhs) {
137 return lhs.base64Line() == rhs.base64Line(); 137 return lhs.base64Line() == rhs.base64Line();
138 } 138 }
139
140 /** @brief Wether or not the certificate is Active.
141 *
142 * This property is mainly for the manually changed certificate list.
143 * A certificate is active if it should be counted as change in a list
144 * and if it should be written to a certificate store.
145 *
146 * An inctive certificate will only be shown in the manual changes list
147 * but not counted as a changed or changed in the certificate list. */
148 bool isActive() const { return mActive; }
149
150 /** @brief set the active state of a certificate.
151 *
152 * See isActive() for details. */
153 void setActive(bool active) { mActive = active; }
154 private: 139 private:
155 /** @brief Helper function to parse the details of a certificate **/ 140 /** @brief Helper function to parse the details of a certificate **/
156 void parseDetails(const QByteArray& cert); 141 void parseDetails(const QByteArray& cert);
157 142
158 bool mValid; 143 bool mValid;
159 /* bool mInstCert; */ 144 /* bool mInstCert; */
160 bool mEditable; 145 bool mEditable;
161 bool mActive;
162 146
163 QString mSubjectOU, 147 QString mSubjectOU,
164 mSubjectCN, 148 mSubjectCN,
165 mSubjectO, 149 mSubjectO,
166 mSubjectSN, 150 mSubjectSN,

http://wald.intevation.org/projects/trustbridge/