Skip to content
This repository has been archived by the owner on May 17, 2021. It is now read-only.

Initial commit of DSC Alarm Binding #1334

Merged
merged 14 commits into from
Nov 5, 2014
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,5 @@ bundles/io/org.openhab.io.multimedia.tts.marytts/lib/
distribution/openhabhome/logs/*.log
distribution/openhabhome/*.zip
distribution/openhabhome/etc/rrd4j/*.rrd
*.xml_gen
*.xml_gen
8 changes: 8 additions & 0 deletions bundles/binding/org.openhab.binding.dscalarm/.classpath
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry exported="true" kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
<classpathentry kind="src" path="src/main/java"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry kind="lib" path="/org.openhab.core.scheduler/lib/quartz-all-2.1.7.jar"/>
<classpathentry kind="output" path="target/classes"/>
</classpath>
33 changes: 33 additions & 0 deletions bundles/binding/org.openhab.binding.dscalarm/.project
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>org.openhab.binding.dscalarm</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.pde.ManifestBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.pde.SchemaBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.pde.ds.core.builder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.pde.PluginNature</nature>
<nature>org.eclipse.jdt.core.javanature</nature>
</natures>
</projectDescription>
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#Thu Apr 28 21:40:46 CEST 2011
eclipse.preferences.version=1
pluginProject.equinox=false
pluginProject.extensions=false
resolve.requirebundle=false
38 changes: 38 additions & 0 deletions bundles/binding/org.openhab.binding.dscalarm/META-INF/MANIFEST.MF
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
Manifest-Version: 1.0
Bundle-Name: openHAB DSC Alarm Binding
Bundle-SymbolicName: org.openhab.binding.dscalarm
Bundle-Version: 1.6.0.qualifier
Bundle-Activator: org.openhab.binding.dscalarm.internal.DSCAlarmActivator
Bundle-Vendor: openHAB.org
Bundle-RequiredExecutionEnvironment: J2SE-1.5
Bundle-ManifestVersion: 2
Bundle-License: http://www.eclipse.org/legal/epl-v10.html
Bundle-Description: This is the DSC Alarm binding of the open Home Automation Bus (openHAB)
Import-Package: gnu.io,
org.apache.commons.io;version="2.0.1",
org.apache.commons.lang,
org.eclipse.emf.common.util,
org.eclipse.emf.ecore,
org.openhab.core.binding,
org.openhab.core.events,
org.openhab.core.items,
org.openhab.core.library.items,
org.openhab.core.library.types,
org.openhab.core.transform,
org.openhab.core.types,
org.openhab.model.core,
org.openhab.model.item.binding,
org.osgi.framework,
org.osgi.service.cm,
org.quartz,
org.quartz.impl,
org.quartz.impl.matchers,
org.quartz.utils,
org.slf4j
Service-Component: OSGI-INF/activebinding.xml, OSGI-INF/genericbindingprovider.xml
Bundle-ClassPath: .
Export-Package: org.openhab.binding.dscalarm




Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--

Copyright (c) 2010-2014, openHAB.org and others.

All rights reserved. This program and the accompanying materials
are made available under the terms of the Eclipse Public License v1.0
which accompanies this distribution, and is available at
http://www.eclipse.org/legal/epl-v10.html

-->
<scr:component xmlns:scr="http://www.osgi.org/xmlns/scr/v1.1.0" activate="activate" deactivate="deactivate" name="org.openhab.binding.dscalarm.activebinding">
<implementation class="org.openhab.binding.dscalarm.internal.DSCAlarmActiveBinding" />

<service>
<provide interface="org.osgi.service.event.EventHandler" />
<provide interface="org.osgi.service.cm.ManagedService" />
</service>

<property name="event.topics" type="String" value="openhab/command/*" />
<property name="service.pid" type="String" value="org.openhab.dscalarm" />

<reference bind="setEventPublisher" cardinality="1..1" interface="org.openhab.core.events.EventPublisher" name="EventPublisher" policy="dynamic" unbind="unsetEventPublisher" />
<reference bind="addBindingProvider" cardinality="1..n" interface="org.openhab.binding.dscalarm.DSCAlarmBindingProvider" name="DSCAlarmBindingProvider" policy="dynamic" unbind="removeBindingProvider" />

</scr:component>
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--

Copyright (c) 2010-2014, openHAB.org and others.

All rights reserved. This program and the accompanying materials
are made available under the terms of the Eclipse Public License v1.0
which accompanies this distribution, and is available at
http://www.eclipse.org/legal/epl-v10.html

-->
<scr:component xmlns:scr="http://www.osgi.org/xmlns/scr/v1.1.0" name="org.openhab.binding.dscalarm.genericbindingprovider">
<implementation class="org.openhab.binding.dscalarm.internal.DSCAlarmGenericBindingProvider"/>

<service>
<provide interface="org.openhab.model.item.binding.BindingConfigReader"/>
<provide interface="org.openhab.binding.dscalarm.DSCAlarmBindingProvider"/>
</service>
</scr:component>
Loading