cec: don't use the pid in dev_lock()/dev_unlock() calls
[deb_libcec.git] / src / cec-config-gui / actions / UpdateConfiguration.cs
CommitLineData
6d866874
LOK
1using System;
2using System.Collections.Generic;
3using System.Text;
4using CecSharp;
5
6namespace CecConfigGui.actions
7{
8 class UpdateConfiguration : UpdateProcess
9 {
10 public UpdateConfiguration(ref LibCecSharp lib, LibCECConfiguration config)
11 {
12 Lib = lib;
13 Config = config;
14 }
15
16 public override void Process()
17 {
18 SendEvent(UpdateEventType.ProgressBar, 10);
19 SendEvent(UpdateEventType.StatusText, "Setting the new configuration");
20
21 Lib.SetConfiguration(Config);
22
23 SendEvent(UpdateEventType.ProgressBar, 100);
24 SendEvent(UpdateEventType.StatusText, "Ready.");
25 }
26
27 private LibCecSharp Lib;
28 private LibCECConfiguration Config;
29 }
30}