diff ui/mainwindow.h @ 445:b3721ded6f5b

Sort and filter the certificate list, changed certificate item roles.
author Raimund Renkert <rrenkert@intevation.de>
date Wed, 23 Apr 2014 11:53:57 +0200
parents 16b5cd858571
children b1b14daf2116
line wrap: on
line diff
--- a/ui/mainwindow.h	Tue Apr 22 16:46:47 2014 +0200
+++ b/ui/mainwindow.h	Wed Apr 23 11:53:57 2014 +0200
@@ -116,6 +116,31 @@
     void createContent();
     void loadCertificateList();
 
+    /** @brief Create a separator item for the certificate list.
+     *
+     * The item uses a SeparatorItemDelegate for layout and styling at the given
+     * index.
+     *
+     * @param[in] text  The text for the item.
+     * @param[in] index The index of the item.
+     *
+     * @return The new separator item.
+     */
+    QListWidgetItem* createSeparator(const QString &text, int index);
+
+    /** @brief Create a certificate list item for the list.
+     *
+     * The item uses a CertificateItemDelegate for layout and styling.
+     *
+     * @param[in] text   The certificate to display.
+     * @param[in] status The certificate status.
+     * @param[in] index  The index of the item.
+     *
+     * @return The new separator item.
+     */
+    QListWidgetItem* createListItem(const Certificate &certificate,
+        Certificate::Status status, int index);
+
     /* Are we running in tray mode ?*/
     const bool mTrayMode;
     /* The message currently shown at intervals */

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