public ProgramReceiveTarget[] getProgramReceiveTargets() {
ArrayList<ProgramReceiveTarget> targets = new ArrayList<ProgramReceiveTarget>();
for (DeviceIf device : mConfig.getDevices()) {
if (device.isAbleToAddAndRemovePrograms()) {
targets.add(new ProgramReceiveTarget(this, device.getName() + " - " + mLocalizer.msg("record", "record"), device.getId() + RECORD));
targets.add(new ProgramReceiveTarget(this, device.getName() + " - " + mLocalizer.msg("remove", "remove"), device.getId() + REMOVE));
}
for (String command : device.getAdditionalCommands()) {
targets.add(new ProgramReceiveTarget(this, device.getName() + " - " + command, device.getId() + "#_" + command));
}
}
return targets.toArray(new ProgramReceiveTarget[targets.size()]);
}