Skip to content

Commit

Permalink
Merge pull request #16677 from phunkyfish/remove-pvr-types-left-align
Browse files Browse the repository at this point in the history
[pvr] Remove PVRTypes.h and left align & and *
  • Loading branch information
ksooo committed Sep 27, 2019
2 parents f7c59fc + e8c3b6f commit 42de291
Show file tree
Hide file tree
Showing 115 changed files with 1,902 additions and 1,896 deletions.
18 changes: 9 additions & 9 deletions xbmc/FileItem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ namespace
}
} // unnamed namespace

void CFileItem::FillMusicInfoTag(const CPVRChannelPtr& channel, const CPVREpgInfoTagPtr& tag)
void CFileItem::FillMusicInfoTag(const std::shared_ptr<CPVRChannel>& channel, const std::shared_ptr<CPVREpgInfoTag>& tag)
{
if (channel && channel->IsRadio() && !HasMusicInfoTag())
{
Expand All @@ -153,7 +153,7 @@ void CFileItem::FillMusicInfoTag(const CPVRChannelPtr& channel, const CPVREpgInf
}
}

CFileItem::CFileItem(const CPVREpgInfoTagPtr& tag)
CFileItem::CFileItem(const std::shared_ptr<CPVREpgInfoTag>& tag)
{
Initialize();

Expand All @@ -180,11 +180,11 @@ CFileItem::CFileItem(const CPVREpgInfoTagPtr& tag)
FillInMimeType(false);
}

CFileItem::CFileItem(const CPVRChannelPtr& channel)
CFileItem::CFileItem(const std::shared_ptr<CPVRChannel>& channel)
{
Initialize();

CPVREpgInfoTagPtr epgNow(channel->GetEPGNow());
std::shared_ptr<CPVREpgInfoTag> epgNow(channel->GetEPGNow());

m_strPath = channel->Path();
m_bIsFolder = false;
Expand All @@ -206,7 +206,7 @@ CFileItem::CFileItem(const CPVRChannelPtr& channel)
FillInMimeType(false);
}

CFileItem::CFileItem(const CPVRRecordingPtr& record)
CFileItem::CFileItem(const std::shared_ptr<CPVRRecording>& record)
{
Initialize();

Expand All @@ -231,7 +231,7 @@ CFileItem::CFileItem(const CPVRRecordingPtr& record)
FillInMimeType(false);
}

CFileItem::CFileItem(const CPVRTimerInfoTagPtr& timer)
CFileItem::CFileItem(const std::shared_ptr<CPVRTimerInfoTag>& timer)
{
Initialize();

Expand Down Expand Up @@ -1197,9 +1197,9 @@ bool CFileItem::IsBluray() const
{
if (URIUtils::IsBluray(m_strPath))
return true;

CFileItem item = CFileItem(GetOpticalMediaPath(), false);

return item.IsBDFile();
}

Expand Down Expand Up @@ -1507,7 +1507,7 @@ void CFileItem::FillInMimeType(bool lookup /*= true*/)
}

// change protocol to mms for the following mime-type. Allows us to create proper FileMMS.
if(StringUtils::StartsWithNoCase(m_mimetype, "application/vnd.ms.wms-hdr.asfv1") ||
if(StringUtils::StartsWithNoCase(m_mimetype, "application/vnd.ms.wms-hdr.asfv1") ||
StringUtils::StartsWithNoCase(m_mimetype, "application/x-mms-framed"))
{
if (m_strDynPath.empty())
Expand Down
37 changes: 22 additions & 15 deletions xbmc/FileItem.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
#include "XBDateTime.h"
#include "addons/IAddon.h"
#include "guilib/GUIListItem.h"
#include "pvr/PVRTypes.h"
#include "threads/CriticalSection.h"
#include "utils/IArchivable.h"
#include "utils/ISerializable.h"
Expand Down Expand Up @@ -45,6 +44,14 @@ namespace GAME
}
}

namespace PVR
{
class CPVRChannel;
class CPVREpgInfoTag;
class CPVRRecording;
class CPVRTimerInfoTag;
}

class CAlbum;
class CArtist;
class CSong;
Expand Down Expand Up @@ -103,10 +110,10 @@ class CFileItem :
explicit CFileItem(const CGenre& genre);
explicit CFileItem(const MUSIC_INFO::CMusicInfoTag& music);
explicit CFileItem(const CVideoInfoTag& movie);
explicit CFileItem(const PVR::CPVREpgInfoTagPtr& tag);
explicit CFileItem(const PVR::CPVRChannelPtr& channel);
explicit CFileItem(const PVR::CPVRRecordingPtr& record);
explicit CFileItem(const PVR::CPVRTimerInfoTagPtr& timer);
explicit CFileItem(const std::shared_ptr<PVR::CPVREpgInfoTag>& tag);
explicit CFileItem(const std::shared_ptr<PVR::CPVRChannel>& channel);
explicit CFileItem(const std::shared_ptr<PVR::CPVRRecording>& record);
explicit CFileItem(const std::shared_ptr<PVR::CPVRTimerInfoTag>& timer);
explicit CFileItem(const CMediaSource& share);
explicit CFileItem(std::shared_ptr<const ADDON::IAddon> addonInfo);
explicit CFileItem(const EventPtr& eventLogEntry);
Expand Down Expand Up @@ -277,12 +284,12 @@ class CFileItem :
return m_epgInfoTag.get() != NULL;
}

inline const PVR::CPVREpgInfoTagPtr GetEPGInfoTag() const
inline const std::shared_ptr<PVR::CPVREpgInfoTag> GetEPGInfoTag() const
{
return m_epgInfoTag;
}

inline void SetEPGInfoTag(const PVR::CPVREpgInfoTagPtr& tag)
inline void SetEPGInfoTag(const std::shared_ptr<PVR::CPVREpgInfoTag>& tag)
{
m_epgInfoTag = tag;
}
Expand All @@ -292,7 +299,7 @@ class CFileItem :
return m_pvrChannelInfoTag.get() != NULL;
}

inline const PVR::CPVRChannelPtr GetPVRChannelInfoTag() const
inline const std::shared_ptr<PVR::CPVRChannel> GetPVRChannelInfoTag() const
{
return m_pvrChannelInfoTag;
}
Expand All @@ -302,7 +309,7 @@ class CFileItem :
return m_pvrRecordingInfoTag.get() != NULL;
}

inline const PVR::CPVRRecordingPtr GetPVRRecordingInfoTag() const
inline const std::shared_ptr<PVR::CPVRRecording> GetPVRRecordingInfoTag() const
{
return m_pvrRecordingInfoTag;
}
Expand All @@ -312,7 +319,7 @@ class CFileItem :
return m_pvrTimerInfoTag != NULL;
}

inline const PVR::CPVRTimerInfoTagPtr GetPVRTimerInfoTag() const
inline const std::shared_ptr<PVR::CPVRTimerInfoTag> GetPVRTimerInfoTag() const
{
return m_pvrTimerInfoTag;
}
Expand Down Expand Up @@ -550,7 +557,7 @@ class CFileItem :
/*!
\brief If given channel is radio, fill item's music tag from given epg tag and channel info.
*/
void FillMusicInfoTag(const PVR::CPVRChannelPtr& channel, const PVR::CPVREpgInfoTagPtr& tag);
void FillMusicInfoTag(const std::shared_ptr<PVR::CPVRChannel>& channel, const std::shared_ptr<PVR::CPVREpgInfoTag>& tag);

std::string m_strPath; ///< complete path to item
std::string m_strDynPath;
Expand All @@ -564,10 +571,10 @@ class CFileItem :
bool m_doContentLookup;
MUSIC_INFO::CMusicInfoTag* m_musicInfoTag;
CVideoInfoTag* m_videoInfoTag;
PVR::CPVREpgInfoTagPtr m_epgInfoTag;
PVR::CPVRChannelPtr m_pvrChannelInfoTag;
PVR::CPVRRecordingPtr m_pvrRecordingInfoTag;
PVR::CPVRTimerInfoTagPtr m_pvrTimerInfoTag;
std::shared_ptr<PVR::CPVREpgInfoTag> m_epgInfoTag;
std::shared_ptr<PVR::CPVRChannel> m_pvrChannelInfoTag;
std::shared_ptr<PVR::CPVRRecording> m_pvrRecordingInfoTag;
std::shared_ptr<PVR::CPVRTimerInfoTag> m_pvrTimerInfoTag;
CPictureInfoTag* m_pictureInfoTag;
std::shared_ptr<const ADDON::IAddon> m_addonInfo;
KODI::GAME::CGameInfoTag* m_gameInfoTag;
Expand Down

0 comments on commit 42de291

Please sign in to comment.