Widget for access plugins of the groups module. More...
#include <bpsaccesswidget.h>
Signals | |
| void | wasModified () |
| Emit this signal when status changes to unsaved. | |
Public Member Functions | |
| BpsAccessWidget (QWidget *aParent=0, Qt::WindowFlags aFlags=0) | |
| The constructor. | |
| virtual void | load ()=0 |
| Load the base access model (again) from the datastore. | |
| virtual void | restoreAccess (qlonglong aGroup, const QByteArray &aData)=0 |
| Restores access flags of a group from a byte array serialized by saveAccess(). | |
| virtual void | save ()=0 |
| Save all pending changes to datastore. | |
| virtual QByteArray | saveAccess (qlonglong aGroup)=0 |
| Save the access flags of a group by serializing them into a byte array. | |
| virtual void | setGroup (qlonglong aGroup)=0 |
| Set the current group. | |
| virtual void | undo ()=0 |
| Undo any pending changes. | |
| virtual | ~BpsAccessWidget () |
| Virtual default destructor. | |
Widget for access plugins of the groups module.
| virtual void BpsAccessWidget::load | ( | ) | [pure virtual] |
Load the base access model (again) from the datastore.
This may discard any pending changes.
| virtual void BpsAccessWidget::restoreAccess | ( | qlonglong | aGroup, |
| const QByteArray & | aData | ||
| ) | [pure virtual] |
Restores access flags of a group from a byte array serialized by saveAccess().
| [in] | aGroup | The group to restore the access flags for. |
| [in] | aData | Byte array with the serialized access flags. |
| virtual QByteArray BpsAccessWidget::saveAccess | ( | qlonglong | aGroup | ) | [pure virtual] |
Save the access flags of a group by serializing them into a byte array.
| [in] | aGroup | The group to save access flags for. |
| virtual void BpsAccessWidget::setGroup | ( | qlonglong | aGroup | ) | [pure virtual] |
Set the current group.
If aGroup >= 0: Load and display the settings for this group. If aGroup < 0: Show empty and disabled inputs.
| [in] | aGroup | The group key to show settings for. |