X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;ds=sidebyside;f=pv%2Fdevicemanager.hpp;h=43d93a7a88f5778d0bed24bcead6ec1f2e9dc85e;hb=e1e2666e31d80016612762940605fc5bdbc63971;hp=d0d11cbd4d7095bcf7f1b3fede305bd83a8a711e;hpb=c6246dc56ed01d7e99aa65ab88b8c191300b1ebd;p=pulseview.git
diff --git a/pv/devicemanager.hpp b/pv/devicemanager.hpp
index d0d11cb..43d93a7 100644
--- a/pv/devicemanager.hpp
+++ b/pv/devicemanager.hpp
@@ -14,8 +14,7 @@
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+ * along with this program; if not, see .
*/
#ifndef PULSEVIEW_PV_DEVICEMANAGER_HPP
@@ -26,6 +25,11 @@
#include
#include
+using std::list;
+using std::map;
+using std::shared_ptr;
+using std::string;
+
namespace Glib {
class VariantBase;
}
@@ -48,34 +52,33 @@ class Session;
class DeviceManager
{
public:
- DeviceManager(std::shared_ptr context);
+ DeviceManager(shared_ptr context);
~DeviceManager() = default;
- const std::shared_ptr& context() const;
+ const shared_ptr& context() const;
- std::shared_ptr context();
+ shared_ptr context();
- const std::list< std::shared_ptr >&
- devices() const;
+ const list< shared_ptr >& devices() const;
- std::list< std::shared_ptr > driver_scan(
- std::shared_ptr driver,
- std::map drvopts);
+ list< shared_ptr > driver_scan(
+ shared_ptr driver,
+ map drvopts);
- const std::map get_device_info(
- const std::shared_ptr device);
+ const map get_device_info(
+ const shared_ptr device);
- const std::shared_ptr find_device_from_info(
- const std::map search_info);
+ const shared_ptr find_device_from_info(
+ const map search_info);
private:
- bool compare_devices(std::shared_ptr a,
- std::shared_ptr b);
+ bool compare_devices(shared_ptr a,
+ shared_ptr b);
protected:
- std::shared_ptr context_;
- std::list< std::shared_ptr > devices_;
+ shared_ptr context_;
+ list< shared_ptr > devices_;
};
} // namespace pv