Commit fd2ed4e3 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

MediaDiscoverer: Don't expose deprecated methods/types

parent 187bf668
......@@ -914,6 +914,7 @@ class MediaListPlayerEventManager : public EventManager
}
};
#if LIBVLC_VERSION_INT < LIBVLC_VERSION(3, 0, 0, 0)
/**
* @brief The MediaDiscovererEventManager class allows one to register MediaDiscoverer related events
*/
......@@ -942,6 +943,7 @@ class MediaDiscovererEventManager : public EventManager
return handle(libvlc_MediaDiscovererEnded, std::forward<Func>( f ) );
}
};
#endif
/**
* @brief The VLMEventManager class allows one to register VLM related events
......
......@@ -33,8 +33,10 @@ namespace VLC
{
class Instance;
class MediaDiscovererEventManager;
class MediaList;
#if LIBVLC_VERSION_INT < LIBVLC_VERSION(3, 0, 0, 0)
class MediaDiscovererEventManager;
#endif
class MediaDiscoverer : public Internal<libvlc_media_discoverer_t>
{
......@@ -123,6 +125,7 @@ public:
}
#endif
#if LIBVLC_VERSION_INT < LIBVLC_VERSION(3, 0, 0, 0)
/**
* Get media service discover object its localized name.
*
......@@ -150,6 +153,7 @@ public:
}
return *m_eventManager;
}
#endif
/**
* Query if media service discover object is running.
......@@ -174,7 +178,9 @@ public:
}
private:
#if LIBVLC_VERSION_INT < LIBVLC_VERSION(3, 0, 0, 0)
std::shared_ptr<MediaDiscovererEventManager> m_eventManager;
#endif
std::shared_ptr<MediaList> m_mediaList;
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment