--- /dev/null
+language: c
+# before_install:
+# - sudo apt-get update -qq
+# - sudo apt-get install -qq uncrustify
+install:
+ - wget http://downloads.sourceforge.net/project/uncrustify/uncrustify/uncrustify-0.59/uncrustify-0.59.tar.gz
+ - tar -xzvf uncrustify-0.59.tar.gz
+ - ( cd uncrustify-0.59 && ./configure --prefix=$HOME/local && make && make install )
+ - export PATH=$PATH:$HOME/local/bin
+script:
+ - make
+ - ./orte/uncrustify && git diff --exit-code
android:versionName="1.0" >
<uses-sdk
- android:minSdkVersion="10"
- android:targetSdkVersion="15" />
+ android:minSdkVersion="9"
+ android:targetSdkVersion="22" />
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/>
#proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt
# Project target.
-target=android-15
+target=android-22
android.library.reference.1=../../libaorte
void MainForm::about()
{
QMessageBox::about( this, "ORTE application demo",
- "This application demonstrates usege of ORTE library\n\n"
+ "This application demonstrates usage of ORTE library\n\n"
"Petr Smolik (c) 2004-2008\n"
"OCERA team");
}
android:versionName="1.2" >
<uses-sdk
- android:minSdkVersion="10"
- android:targetSdkVersion="21" />
+ android:minSdkVersion="9"
+ android:targetSdkVersion="22" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
#proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt
# Project target.
-target=android-21
+target=android-22
android.library.reference.1=../../libaorte
}
this.allowScaling = true;
- this.buffer.order(null); // set buffer to Little endian (Shape uses this)
}
/* (non-Javadoc)
public void onDestroy()
{
super.onDestroy();
-
+
+ handler.removeCallbacks(redraw);
+
+ for (PublisherShape shape : publisherView.shapes)
+ shape.killMe();
+
+ for (SubscriberElement element : subscriberView.elements)
+ element.killMe();
+
if (appDomain != null) {
appDomain.destroy();
appDomain = null;
*/
public void killMe()
{
- this.publication.destroy();
+ if (this.publication != null) {
+ this.publication.destroy();
+ this.publication = null;
+ }
}
/**
this.setShape();
}
+ /**
+ * When subscriber is removed, destroy subscription.
+ *
+ * @since 1.0
+ */
+ public void killMe() {
+ if (this.subscription != null) {
+ this.subscription.destroy();
+ this.subscription = null;
+ }
+ }
}
android:versionName="1.0" >
<uses-sdk
- android:minSdkVersion="10"
- android:targetSdkVersion="15" />
+ android:minSdkVersion="9"
+ android:targetSdkVersion="22" />
<uses-permission android:name="android.permission.INTERNET"/>
#proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt
# Project target.
-target=android-15
+target=android-22
android.library=true