package eu.nerro.wolappla.provider;

/**
 * Provider that stores {@link DeviceContract} data.
 */
public class DeviceProvider {
}

@@ -34,97 +34,1683 @@
 r;%0A%0A
-/**%0A * Provider that stores %7B@link DeviceContract%7D data.%0A */%0Apublic class DeviceProvider %7B
+import android.app.Activity;%0Aimport android.content.ContentProvider;%0Aimport android.content.ContentValues;%0Aimport android.content.UriMatcher;%0Aimport android.database.Cursor;%0Aimport android.net.Uri;%0A%0Aimport static eu.nerro.wolappla.util.LogUtils.makeLogTag;%0A%0A/**%0A * Provider that stores %7B@link DeviceContract%7D data. Data is inserted%0A * and queried by various %7B@link Activity%7D instances.%0A */%0Apublic class DeviceProvider extends ContentProvider %7B%0A  private static final String TAG = makeLogTag(DeviceProvider.class);%0A%0A  private static final UriMatcher sUriMatcher = buildUriMatcher();%0A%0A  private static final int DEVICES = 100;%0A%0A  private DeviceDatabase mOpenHelper;%0A%0A  /**%0A   * Build and return a %7B@link UriMatcher%7D that catches all %7B@link Uri%7D%0A   * variations supported by this %7B@link ContentProvider%7D.%0A   */%0A  private static UriMatcher buildUriMatcher() %7B%0A    final UriMatcher matcher = new UriMatcher(UriMatcher.NO_MATCH);%0A    final String authority = DeviceContract.CONTENT_AUTHORITY;%0A%0A    matcher.addURI(authority, %22devices%22, DEVICES);%0A%0A    return matcher;%0A  %7D%0A%0A  @Override%0A  public boolean onCreate() %7B%0A    mOpenHelper = new DeviceDatabase(getContext());%0A    return true;%0A  %7D%0A%0A  @Override%0A  public Cursor query(Uri uri, String%5B%5D strings, String s, String%5B%5D strings2, String s2) %7B%0A    return null;%0A  %7D%0A%0A  @Override%0A  public String getType(Uri uri) %7B%0A    return null;%0A  %7D%0A%0A  @Override%0A  public Uri insert(Uri uri, ContentValues contentValues) %7B%0A    return null;%0A  %7D%0A%0A  @Override%0A  public int delete(Uri uri, String s, String%5B%5D strings) %7B%0A    return 0;%0A  %7D%0A%0A  @Override%0A  public int update(Uri uri, ContentValues contentValues, String s, String%5B%5D strings) %7B%0A    return 0;%0A  %7D
 %0A%7D%0A

Add stub content provider