#include <date_widget.hpp>
Public Member Functions |
std::time_t | getValue () const override |
| Gets the widget's value in terms of std::time_t.
|
void | setValue (std::time_t const &date) override |
| Sets the widget's value in terms of std::time_t.
|
Protected Member Functions |
| DateWidget (gphoto2::_CameraWidget *cameraWidget) |
| ValueWidgetBase (gphoto2::_CameraWidget *cameraWidget) |
| CameraWidgetWrapper (gphoto2::_CameraWidget *cameraWidget) |
void | ref () |
| Adds a reference count to the internal gphoto2::CameraWidget struct.
|
void | unref () |
| Subtracts a reference count to the internal gphoto2::CameraWidget struct.
|
gphoto2::_CameraWidget * | getRootDefault () const |
| Gets the unwrapped CameraWidget struct pointer of the root.
|
gphoto2::_CameraWidget * | getParentDefault () const |
| Gets the unwrapped CameraWidget struct pointer of the parent.
|
Additional Inherited Members |
gphoto2::_CameraWidget * | m_cameraWidget = nullptr |
Detailed Description
A class representing gphoto2 widgets which are of the widget type GPhoto2pp::CameraWidgetTypeWrapper::Date
Constructor & Destructor Documentation
gphoto2pp::DateWidget::DateWidget |
( |
gphoto2::_CameraWidget * |
cameraWidget | ) |
|
|
protected |
Member Function Documentation
std::time_t gphoto2pp::DateWidget::getValue |
( |
| ) |
const |
|
overridevirtual |
Gets the widget's value in terms of std::time_t.
- Returns
- the widget's std::time_t value
- Note
- Direct wrapper for
gp_widget_get_value(...)
- Exceptions
-
GPhoto2pp::exceptions::gphoto2_exception | |
Implements gphoto2pp::ValueWidgetBase< std::time_t >.
void gphoto2pp::DateWidget::setValue |
( |
std::time_t const & |
date | ) |
|
|
overridevirtual |
Sets the widget's value in terms of std::time_t.
- Parameters
-
[in] | date | to set for the widget |
- Note
- Direct wrapper for gp_widget_set_value(...)
- Exceptions
-
GPhoto2pp::exceptions::gphoto2_exception | |
Implements gphoto2pp::ValueWidgetBase< std::time_t >.
Friends And Related Function Documentation
The documentation for this class was generated from the following files: