Documents > BPS V2 C++ API
BpsAccessWidget Class Reference

Widget for access plugins of the groups module. More...

#include <bpsaccesswidget.h>

List of all members.

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.

Detailed Description

Widget for access plugins of the groups module.


Member Function Documentation

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().

Parameters:
[in]aGroupThe group to restore the access flags for.
[in]aDataByte 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.

Parameters:
[in]aGroupThe group to save access flags for.
Returns:
Byte array with the serialized access flags.
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.

Parameters:
[in]aGroupThe group key to show settings for.

The documentation for this class was generated from the following file: