~dhis2-academy/dhis2-academy/android

« back to all changes in this revision

Viewing changes to dhis-mobile/dhis-androidApp/src/org/hisp/dhis/providers/OrganizationUnits.java

  • Committer: Simen Sægrov
  • Date: 2010-12-03 13:40:25 UTC
  • Revision ID: simesae@simesae-barbar-20101203134025-l1u028lmileon47r
Added a content provider and a syncronization service. The synchronization service runs in the GUI thread at the moment, and will be fixed soon. The service now uses the url from the settings screen.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
package org.hisp.dhis.providers;
 
2
 
 
3
import android.net.Uri;
 
4
import android.provider.BaseColumns;
 
5
 
 
6
public class OrganizationUnits {
 
7
 
 
8
        public static final class OrganizationUnit implements BaseColumns {
 
9
                private OrganizationUnit() {
 
10
                }
 
11
 
 
12
                public static final Uri CONTENT_URI = Uri.parse("content://"
 
13
                                + OrgUnitProvider.AUTHORITY + "/orgunits/");
 
14
 
 
15
                public static final String CONTENT_TYPE = "vnd.android.cursor.dir/vnd.hisp.dhis.orgunits";
 
16
 
 
17
                public static final String ORGUNIT_ID = "_id";
 
18
 
 
19
                public static final String ORGUNIT_NAME = "name";
 
20
 
 
21
                public static final String ORGUNIT_PARENT = "parent";
 
22
        }
 
23
        
 
24
}