mirror of
				https://projects.vdr-developer.org/git/vdr-plugin-skindesigner.git
				synced 2023-10-19 15:58:31 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			27 lines
		
	
	
		
			548 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			27 lines
		
	
	
		
			548 B
		
	
	
	
		
			C
		
	
	
	
	
	
#include "displayvolume.h"
 | 
						|
 | 
						|
#include "config.h"
 | 
						|
 | 
						|
cSDDisplayVolume::cSDDisplayVolume(cViewVolume *volumeView) {
 | 
						|
    view = volumeView;
 | 
						|
    ok = view->Init();
 | 
						|
    if (!ok)
 | 
						|
        esyslog("skindesigner: Error initiating displayvolume view - aborting");
 | 
						|
}
 | 
						|
 | 
						|
cSDDisplayVolume::~cSDDisplayVolume() {
 | 
						|
    view->Close();
 | 
						|
}
 | 
						|
 | 
						|
void cSDDisplayVolume::SetVolume(int Current, int Total, bool Mute) {
 | 
						|
    if (!ok)
 | 
						|
        return;
 | 
						|
    view->SetVolume(Current, Total, Mute);
 | 
						|
}
 | 
						|
 | 
						|
void cSDDisplayVolume::Flush(void) {
 | 
						|
    if (!ok)
 | 
						|
        return;
 | 
						|
    view->Flush();
 | 
						|
}
 |