1
0
mirror of https://github.com/etesync/android synced 2024-11-15 20:38:58 +00:00

Add missing files (fixes #517)

This commit is contained in:
Ricki Hirner 2015-05-27 15:51:31 +02:00
parent 13ec5a93ae
commit 2665f6c4e6
6 changed files with 1575 additions and 2 deletions

View File

@ -1 +0,0 @@
/home/rfc2822/Entwicklung/Android/task-provider/src/org/dmfs/provider/tasks/TaskContract.java

File diff suppressed because it is too large Load Diff

View File

@ -1 +0,0 @@
/home/rfc2822/Entwicklung/Android/task-provider/src/org/dmfs/provider/tasks/UriFactory.java

View File

@ -0,0 +1,56 @@
/*
* Copyright (C) 2014 Marten Gajda <marten@dmfs.org>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
package org.dmfs.provider.tasks;
import java.util.HashMap;
import java.util.Map;
import android.net.Uri;
public class UriFactory
{
public final String authority;
private final Map<String, Uri> mUriMap = new HashMap<String, Uri>(16);
UriFactory(String authority)
{
this.authority = authority;
mUriMap.put((String) null, Uri.parse("content://" + authority));
}
void addUri(String path)
{
mUriMap.put(path, Uri.parse("content://" + authority + "/" + path));
}
public Uri getUri()
{
return mUriMap.get(null);
}
public Uri getUri(String path)
{
return mUriMap.get(path);
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 321 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 245 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 341 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 441 B