Permalink
Browse files

[pvr] Recording images code cosmetics

  • Loading branch information...
1 parent 89e166f commit ec60b999e9566d1199a7cc5107f68403e79f787f @fetzerch fetzerch committed Sep 26, 2012
Showing with 51 additions and 51 deletions.
  1. +14 −14 xbmc/addons/include/xbmc_pvr_types.h
  2. +28 −28 xbmc/pvr/recordings/PVRRecording.cpp
  3. +9 −9 xbmc/pvr/recordings/PVRRecording.h
@@ -251,23 +251,23 @@ extern "C" {
* @brief Representation of a recording.
*/
typedef struct PVR_RECORDING {
- char strRecordingId[PVR_ADDON_NAME_STRING_LENGTH]; /*!< @brief (required) unique id of the recording on the client. */
- char strTitle[PVR_ADDON_NAME_STRING_LENGTH]; /*!< @brief (required) the title of this recording */
- char strStreamURL[PVR_ADDON_URL_STRING_LENGTH]; /*!< @brief (required) stream URL to access this recording */
- char strDirectory[PVR_ADDON_URL_STRING_LENGTH]; /*!< @brief (optional) directory of this recording on the client */
- char strPlotOutline[PVR_ADDON_DESC_STRING_LENGTH]; /*!< @brief (optional) plot outline */
- char strPlot[PVR_ADDON_DESC_STRING_LENGTH]; /*!< @brief (optional) plot */
- char strChannelName[PVR_ADDON_NAME_STRING_LENGTH]; /*!< @brief (optional) channel name */
+ char strRecordingId[PVR_ADDON_NAME_STRING_LENGTH]; /*!< @brief (required) unique id of the recording on the client. */
+ char strTitle[PVR_ADDON_NAME_STRING_LENGTH]; /*!< @brief (required) the title of this recording */
+ char strStreamURL[PVR_ADDON_URL_STRING_LENGTH]; /*!< @brief (required) stream URL to access this recording */
+ char strDirectory[PVR_ADDON_URL_STRING_LENGTH]; /*!< @brief (optional) directory of this recording on the client */
+ char strPlotOutline[PVR_ADDON_DESC_STRING_LENGTH]; /*!< @brief (optional) plot outline */
+ char strPlot[PVR_ADDON_DESC_STRING_LENGTH]; /*!< @brief (optional) plot */
+ char strChannelName[PVR_ADDON_NAME_STRING_LENGTH]; /*!< @brief (optional) channel name */
char strIconPath[PVR_ADDON_URL_STRING_LENGTH]; /*!< @brief (optional) icon path */
char strThumbnailPath[PVR_ADDON_URL_STRING_LENGTH]; /*!< @brief (optional) thumbnail path */
char strFanartPath[PVR_ADDON_URL_STRING_LENGTH]; /*!< @brief (optional) fanart path */
- time_t recordingTime; /*!< @brief (optional) start time of the recording */
- int iDuration; /*!< @brief (optional) duration of the recording in seconds */
- int iPriority; /*!< @brief (optional) priority of this recording (from 0 - 100) */
- int iLifetime; /*!< @brief (optional) life time in days of this recording */
- int iGenreType; /*!< @brief (optional) genre type */
- int iGenreSubType; /*!< @brief (optional) genre sub type */
- int iPlayCount; /*!< @brief (optional) play count of this recording on the client */
+ time_t recordingTime; /*!< @brief (optional) start time of the recording */
+ int iDuration; /*!< @brief (optional) duration of the recording in seconds */
+ int iPriority; /*!< @brief (optional) priority of this recording (from 0 - 100) */
+ int iLifetime; /*!< @brief (optional) life time in days of this recording */
+ int iGenreType; /*!< @brief (optional) genre type */
+ int iGenreSubType; /*!< @brief (optional) genre sub type */
+ int iPlayCount; /*!< @brief (optional) play count of this recording on the client */
} ATTRIBUTE_PACKED PVR_RECORDING;
/*!
@@ -39,20 +39,20 @@ CPVRRecording::CPVRRecording(const PVR_RECORDING &recording, unsigned int iClien
{
Reset();
- m_strRecordingId = recording.strRecordingId;
- m_strTitle = recording.strTitle;
- m_iClientId = iClientId;
- m_recordingTime = recording.recordingTime + g_advancedSettings.m_iPVRTimeCorrection;
- m_duration = CDateTimeSpan(0, 0, recording.iDuration / 60, recording.iDuration % 60);
- m_iPriority = recording.iPriority;
- m_iLifetime = recording.iLifetime;
- m_strDirectory = recording.strDirectory;
- m_strPlot = recording.strPlot;
- m_strPlotOutline = recording.strPlotOutline;
- m_strStreamURL = recording.strStreamURL;
- m_strChannelName = recording.strChannelName;
- m_genre = StringUtils::Split(CEpg::ConvertGenreIdToString(recording.iGenreType, recording.iGenreSubType), g_advancedSettings.m_videoItemSeparator);
- m_iRecPlayCount = recording.iPlayCount;
+ m_strRecordingId = recording.strRecordingId;
+ m_strTitle = recording.strTitle;
+ m_iClientId = iClientId;
+ m_recordingTime = recording.recordingTime + g_advancedSettings.m_iPVRTimeCorrection;
+ m_duration = CDateTimeSpan(0, 0, recording.iDuration / 60, recording.iDuration % 60);
+ m_iPriority = recording.iPriority;
+ m_iLifetime = recording.iLifetime;
+ m_strDirectory = recording.strDirectory;
+ m_strPlot = recording.strPlot;
+ m_strPlotOutline = recording.strPlotOutline;
+ m_strStreamURL = recording.strStreamURL;
+ m_strChannelName = recording.strChannelName;
+ m_genre = StringUtils::Split(CEpg::ConvertGenreIdToString(recording.iGenreType, recording.iGenreSubType), g_advancedSettings.m_videoItemSeparator);
+ m_iRecPlayCount = recording.iPlayCount;
m_strIconPath = recording.strIconPath;
m_strThumbnailPath = recording.strThumbnailPath;
m_strFanartPath = recording.strFanartPath;
@@ -195,20 +195,20 @@ void CPVRRecording::DisplayError(PVR_ERROR err) const
void CPVRRecording::Update(const CPVRRecording &tag)
{
- m_strRecordingId = tag.m_strRecordingId;
- m_iClientId = tag.m_iClientId;
- m_strTitle = tag.m_strTitle;
- m_recordingTime = tag.m_recordingTime;
- m_duration = tag.m_duration;
- m_iPriority = tag.m_iPriority;
- m_iLifetime = tag.m_iLifetime;
- m_strDirectory = tag.m_strDirectory;
- m_strPlot = tag.m_strPlot;
- m_strPlotOutline = tag.m_strPlotOutline;
- m_strStreamURL = tag.m_strStreamURL;
- m_strChannelName = tag.m_strChannelName;
- m_genre = tag.m_genre;
- m_iRecPlayCount = tag.m_iRecPlayCount;
+ m_strRecordingId = tag.m_strRecordingId;
+ m_iClientId = tag.m_iClientId;
+ m_strTitle = tag.m_strTitle;
+ m_recordingTime = tag.m_recordingTime;
+ m_duration = tag.m_duration;
+ m_iPriority = tag.m_iPriority;
+ m_iLifetime = tag.m_iLifetime;
+ m_strDirectory = tag.m_strDirectory;
+ m_strPlot = tag.m_strPlot;
+ m_strPlotOutline = tag.m_strPlotOutline;
+ m_strStreamURL = tag.m_strStreamURL;
+ m_strChannelName = tag.m_strChannelName;
+ m_genre = tag.m_genre;
+ m_iRecPlayCount = tag.m_iRecPlayCount;
m_strIconPath = tag.m_strIconPath;
m_strThumbnailPath = tag.m_strThumbnailPath;
m_strFanartPath = tag.m_strFanartPath;
@@ -44,15 +44,15 @@ namespace PVR
class CPVRRecording : public CVideoInfoTag
{
public:
- int m_iClientId; /*!< ID of the backend */
- CStdString m_strRecordingId; /*!< unique id of the recording on the client */
- CStdString m_strChannelName; /*!< name of the channel this was recorded from */
- CDateTimeSpan m_duration; /*!< duration of this recording */
- int m_iPriority; /*!< priority of this recording */
- int m_iLifetime; /*!< lifetime of this recording */
- CStdString m_strStreamURL; /*!< stream URL. if empty use pvr client */
- CStdString m_strDirectory; /*!< directory of this recording on the client */
- int m_iRecPlayCount; /*!< play count of this recording on the client */
+ int m_iClientId; /*!< ID of the backend */
+ CStdString m_strRecordingId; /*!< unique id of the recording on the client */
+ CStdString m_strChannelName; /*!< name of the channel this was recorded from */
+ CDateTimeSpan m_duration; /*!< duration of this recording */
+ int m_iPriority; /*!< priority of this recording */
+ int m_iLifetime; /*!< lifetime of this recording */
+ CStdString m_strStreamURL; /*!< stream URL. if empty use pvr client */
+ CStdString m_strDirectory; /*!< directory of this recording on the client */
+ int m_iRecPlayCount; /*!< play count of this recording on the client */
CStdString m_strIconPath; /*!< icon path */
CStdString m_strThumbnailPath; /*!< thumbnail path */
CStdString m_strFanartPath; /*!< fanart path */

0 comments on commit ec60b99

Please sign in to comment.