CaptureProcessOverlay::CaptureHistory

Search for usage in LXR

CaptureProcessOverlay::CaptureHistory Class Reference

#include <captureprocessoverlay.h>

Public Member Functions

bool addFrame (FrameData data)
 
bool backward ()
 
const FrameData currentFrame ()
 
bool deleteFrame (int pos)
 
bool forward ()
 
const FrameData getFrame (int pos)
 
int position ()
 
void reset ()
 
int size ()
 
void updateTargetStatistics ()
 

Public Attributes

TargetStatistics statistics
 

Detailed Description

Navigator through the capture history.

Definition at line 50 of file captureprocessoverlay.h.

Member Function Documentation

◆ addFrame()

bool CaptureProcessOverlay::CaptureHistory::addFrame ( CaptureProcessOverlay::FrameData data)

Add a newly captured frame to the history.

Parameters
dataframe data
Returns
true iff this is a new frame, i.e. its filename does not exist in the history

Definition at line 169 of file captureprocessoverlay.cpp.

◆ backward()

bool CaptureProcessOverlay::CaptureHistory::backward ( )

Move one step backwards in the history.

Returns
true iff the move was possible within the limits

Definition at line 221 of file captureprocessoverlay.cpp.

◆ currentFrame()

const FrameData CaptureProcessOverlay::CaptureHistory::currentFrame ( )
inline

the currently pointed capture frame

Definition at line 69 of file captureprocessoverlay.h.

◆ deleteFrame()

bool CaptureProcessOverlay::CaptureHistory::deleteFrame ( int pos)

Delete the current frame and (if possible) the corresponding file.

If the last one has been deleted, navigate to the frame before, if possible.

Returns
true iff deleting was successful

Definition at line 183 of file captureprocessoverlay.cpp.

◆ forward()

bool CaptureProcessOverlay::CaptureHistory::forward ( )

Move one step forward in the history.

Returns
true iff the move was possible within the limits

Definition at line 210 of file captureprocessoverlay.cpp.

◆ getFrame()

const FrameData CaptureProcessOverlay::CaptureHistory::getFrame ( int pos)
inline

Obtain the frame from the given position in the history.

Definition at line 78 of file captureprocessoverlay.h.

◆ position()

int CaptureProcessOverlay::CaptureHistory::position ( )
inline

The current navigation position in the capture history.

Definition at line 74 of file captureprocessoverlay.h.

◆ reset()

void CaptureProcessOverlay::CaptureHistory::reset ( )

Reset the history.

Definition at line 204 of file captureprocessoverlay.cpp.

◆ size()

int CaptureProcessOverlay::CaptureHistory::size ( )
inline

Capture history size.

Definition at line 82 of file captureprocessoverlay.h.

◆ updateTargetStatistics()

void CaptureProcessOverlay::CaptureHistory::updateTargetStatistics ( )

Iterate over the current target history and add all those where the corresponding file exists.

Definition at line 232 of file captureprocessoverlay.cpp.

Member Data Documentation

◆ statistics

TargetStatistics CaptureProcessOverlay::CaptureHistory::statistics

Definition at line 104 of file captureprocessoverlay.h.


The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:19:04 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.