65 |
65 |
66 // ---------------------------------------------------------------------------- |
66 // ---------------------------------------------------------------------------- |
67 // VideoServices() |
67 // VideoServices() |
68 // ---------------------------------------------------------------------------- |
68 // ---------------------------------------------------------------------------- |
69 // |
69 // |
70 VideoServices::VideoServices(QVideoPlayerEngine* engine) |
70 VideoServices::VideoServices( VideoPlayerEngine* engine ) |
71 : mCurrentService(VideoServices::ENoService) |
71 : mCurrentService(VideoServices::ENoService) |
72 , mFetchSelected( false ) |
72 , mFetchSelected( false ) |
73 { |
73 { |
74 MPX_ENTER_EXIT(_L("VideoServices::VideoServices()")); |
74 MPX_ENTER_EXIT(_L("VideoServices::VideoServices()")); |
75 |
75 |
76 mServiceUriFetch = new VideoServiceUriFetch(this); |
76 mServiceUriFetch = new VideoServiceUriFetch( this ); |
77 mServicePlay = new VideoServicePlay(this, engine); |
77 mServicePlay = new VideoServicePlay( this, engine ); |
78 mServiceView = new VideoServiceView(this, engine); |
78 mServiceView = new VideoServiceView( this, engine ); |
79 } |
79 } |
80 |
80 |
81 // ---------------------------------------------------------------------------- |
81 // ---------------------------------------------------------------------------- |
82 // ~VideoServices() |
82 // ~VideoServices() |
83 // ---------------------------------------------------------------------------- |
83 // ---------------------------------------------------------------------------- |
84 // |
84 // |
85 VideoServices::~VideoServices() |
85 VideoServices::~VideoServices() |
86 { |
86 { |
87 MPX_ENTER_EXIT(_L("VideoServices::~VideoServices()")); |
87 MPX_ENTER_EXIT(_L("VideoServices::~VideoServices()")); |
88 |
88 |
89 delete mServiceUriFetch; |
89 delete mServiceUriFetch; |
90 delete mServicePlay; |
90 delete mServicePlay; |
91 delete mServiceView; |
91 delete mServiceView; |
92 } |
92 } |
93 |
93 |
94 |
94 |
95 // ---------------------------------------------------------------------------- |
95 // ---------------------------------------------------------------------------- |
96 // currentService() |
96 // currentService() |
97 // ---------------------------------------------------------------------------- |
97 // ---------------------------------------------------------------------------- |
98 // |
98 // |
99 VideoServices::TVideoService VideoServices::currentService() |
99 VideoServices::TVideoService VideoServices::currentService() |
100 { |
100 { |
101 MPX_DEBUG(_L("VideoServices::currentService() ret %d"), mCurrentService); |
101 MPX_DEBUG(_L("VideoServices::currentService() ret %d"), mCurrentService); |
102 return mCurrentService; |
102 return mCurrentService; |
103 } |
103 } |
104 |
104 |
105 |
105 |
106 // ---------------------------------------------------------------------------- |
106 // ---------------------------------------------------------------------------- |
107 // setCurrentService() |
107 // setCurrentService() |
108 // ---------------------------------------------------------------------------- |
108 // ---------------------------------------------------------------------------- |
109 // |
109 // |
110 void VideoServices::setCurrentService( VideoServices::TVideoService service ) |
110 void VideoServices::setCurrentService( VideoServices::TVideoService service ) |
111 { |
111 { |
112 MPX_DEBUG(_L("VideoServices::setCurrentService(%d)"), service); |
112 MPX_DEBUG(_L("VideoServices::setCurrentService(%d)"), service); |
113 mCurrentService = service; |
113 mCurrentService = service; |
114 } |
114 } |
115 |
115 |