EmbeddedEntryVideoPlayer Class Reference

Implements video player that is used for embedding videos to texts. More...

#include <EmbeddedEntryVideoPlayer.h>

Inheritance diagram for EmbeddedEntryVideoPlayer:

EmbeddedTextObjectCopyingCallbackAPI

List of all members.

Signals

void initCopyWidgetDestruction ()
 Emitted when copywidget is no longer needed. Connected to copy widget's deletelater() - slot.

Public Member Functions

 EmbeddedEntryVideoPlayer (QWidget *parent)
void finishedCopying ()
 Gets called by EmbeddedTextObjectCopyingProgressWidget when copying file is complete.
void canceledCopying ()
 Gets called by EmbeddedTextObjectCopyingProgressWidget if user clicks Cancel.
void EnableControls ()
void setCopyProgressWidgetPtr (EmbeddedTextObjectCopyingProgressWidget *widgetPtr)
 Gets called by DiaryEntryCreator when it creates new EmbeddedTextObjectCopyingProgressWidget object.
void setAbsoluteFileName (const QString &Filename)
 Set the filename of the video with absoulte path.
void setRelativeFileName (const QString &Filename)
 Set the filename and path to the video relative to diary entry storage path.
void SetListEntryPtr (struct VideoTextobjectListEntry *entryPtr)
 Set the pointer to the entry node that stores this videoplayer in MyQtextBrowser 's video text object list.
QString getAbsoluteFileName ()
 Get the filename of the video with absoulte path.
QString getRelativeFileName ()
 Get the filename of the video relative to diary entry storage path.

Private Attributes

QString iAbsoluteFilename
 Stores the file name of the video with absoulte path.
QString iRelativeFilename
 Stores the file name of the video with path relative to diary entry storage path.
struct VideoTextobjectListEntryiVideoObjectListEntryPtr
 Pointer to node that stores this video player in MyQtextBrowser's video text object list.


Detailed Description

Implements video player that is used for embedding videos to texts.

Member Function Documentation

void EmbeddedEntryVideoPlayer::canceledCopying (  )  [virtual]

Gets called by EmbeddedTextObjectCopyingProgressWidget if user clicks Cancel.

Note:
Remeber to take care of deleting the EmbeddedTextObjectCopyingProgressWidget object (by calling deletelater() in this function for example)

Implements EmbeddedTextObjectCopyingCallbackAPI.

void EmbeddedEntryVideoPlayer::finishedCopying (  )  [virtual]

Gets called by EmbeddedTextObjectCopyingProgressWidget when copying file is complete.

Note:
Remeber to take care of deleting the EmbeddedTextObjectCopyingProgressWidget object (by calling deletelater() in this function for example)

Implements EmbeddedTextObjectCopyingCallbackAPI.

QString EmbeddedEntryVideoPlayer::getAbsoluteFileName (  ) 

Get the filename of the video with absoulte path.

Returns:
File name set by setAbsoluteFileName(const QString &Filename).

QString EmbeddedEntryVideoPlayer::getRelativeFileName (  ) 

Get the filename of the video relative to diary entry storage path.

Returns:
File name set by setRelativeFileName(const QString &Filename).

void EmbeddedEntryVideoPlayer::setAbsoluteFileName ( const QString &  Filename  ) 

Set the filename of the video with absoulte path.

Parameters:
Filename File name with absolute path to the file. This file name is passed to mplayer when telling it to start play the file

void EmbeddedEntryVideoPlayer::setCopyProgressWidgetPtr ( EmbeddedTextObjectCopyingProgressWidget widgetPtr  )  [virtual]

Gets called by DiaryEntryCreator when it creates new EmbeddedTextObjectCopyingProgressWidget object.

The pointer can be used to insert the progressbar widget within a layout of the client widget for example.

Note:
Attleast store the pointer so you can delete the object when it's no longer needed. ( in finishedCopying() or canceledCopying() )

Reimplemented from EmbeddedTextObjectCopyingCallbackAPI.

void EmbeddedEntryVideoPlayer::SetListEntryPtr ( struct VideoTextobjectListEntry entryPtr  ) 

Set the pointer to the entry node that stores this videoplayer in MyQtextBrowser 's video text object list.

Parameters:
entryPtr Pointer to the node storing this video player.

void EmbeddedEntryVideoPlayer::setRelativeFileName ( const QString &  Filename  ) 

Set the filename and path to the video relative to diary entry storage path.

Parameters:
Filename File name with relative path to the file. This file name is used when saving the video object to the diary file.


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

Generated on Thu Mar 3 17:42:03 2011 for Xiaoning's Diary by  doxygen 1.5.9