text stringlengths 3 1.18M |
|---|
/*
* Copyright (C) 2009 Android Shuffle Open Source Project
*
* 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... |
package org.dodgybits.shuffle.android.core.view;
import org.dodgybits.android.shuffle.R;
import android.content.Context;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import android.widget.TextView;
public class IconArrayAdapter extends ArrayAdapter<CharSequence> {
pr... |
package org.dodgybits.shuffle.android.core.configuration;
import android.content.ContextWrapper;
import com.google.inject.Provides;
import org.dodgybits.android.shuffle.R;
import org.dodgybits.shuffle.android.core.model.Context;
import org.dodgybits.shuffle.android.core.model.Id;
import org.dodgybits.shuffle.an... |
/*
* Copyright (C) 2009 Android Shuffle Open Source Project
*
* 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... |
package org.dodgybits.shuffle.android.core.util;
import java.util.List;
public class StringUtils {
public static String repeat(int count, String token) {
return repeat(count, token, "");
}
public static String repeat(int count, String token, String delim) {
StringBuilder builder = new StringBuilder();
for... |
package org.dodgybits.shuffle.android.core.util;
import java.lang.ref.SoftReference;
import java.util.HashMap;
import android.util.Log;
/**
* Generic in-memory cache based on Romain Guy's suggestion.
* See http://code.google.com/events/io/2009/sessions/TurboChargeUiAndroidFast.html
*/
public class ItemCache<K,V> ... |
/*
* Copyright (C) 2009 Android Shuffle Open Source Project
*
* 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... |
package org.dodgybits.shuffle.android.core.util;
import java.lang.reflect.Field;
import android.os.Build;
public class OSUtils {
public static boolean osAtLeastFroyo() {
boolean isFroyoOrAbove = false;
try {
Field field = Build.VERSION.class.getDeclaredField("SDK_INT");
i... |
package org.dodgybits.shuffle.android.core.util;
public final class Constants {
private Constants() {
//deny
}
public static final String cPackage = "org.dodgybits.android.shuffle";
public static final int cVersion = 29;
public static final String cFlurryApiKey = "T7KF1PCGVU... |
package org.dodgybits.shuffle.android.core.util;
import android.net.Uri;
public class CalendarUtils {
// We can't use the constants from the provider since it's not a public portion of the SDK.
private static final Uri CALENDAR_CONTENT_URI =
Uri.parse("content://calendar/calendars"); // Calendars.C... |
package org.dodgybits.shuffle.android.core;
import com.google.inject.Module;
import org.dodgybits.shuffle.android.core.configuration.ShuffleModule;
import roboguice.application.RoboApplication;
import java.util.List;
public class ShuffleApplication extends RoboApplication {
@Override
protected void add... |
/*
* Copyright (C) 2008 The Android Open Source Project
*
* 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 app... |
package org.dodgybits.shuffle.android.widget;
import android.app.PendingIntent;
import android.appwidget.AppWidgetManager;
import android.content.*;
import android.database.Cursor;
import android.net.Uri;
import android.view.View;
import android.widget.RemoteViews;
import com.google.inject.Inject;
import org.dodgybits... |
/*
* Copyright (C) 2008 The Android Open Source Project
*
* 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 app... |
package org.dodgybits.shuffle.android.widget;
import android.appwidget.AppWidgetManager;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import com.google.inject.Injector;
import roboguice.application.RoboApplication;
import roboguice.inject.ContextScope;
import roboguice.recei... |
package org.dodgybits.shuffle.android.widget;
import android.appwidget.AppWidgetManager;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.ArrayAdapter;
import android.widget.ListView;
import android.widget.RemoteViews;
import org.dodgybits.android.shuffle.R;
impo... |
package org.dodgybits.shuffle.web.client.model;
import java.io.Serializable;
@SuppressWarnings("serial")
public class ContextValue implements Serializable {
private KeyValue<ContextValue> mKeyValue;
private String mName;
@SuppressWarnings("unused")
private ContextValue() {
// required for GWT serialization
}... |
package org.dodgybits.shuffle.web.client.model;
import java.io.Serializable;
import java.util.ArrayList;
@SuppressWarnings("serial")
public class ValueSelection<T> implements Serializable {
static enum SelectionType {
All, Some, None
}
private SelectionType mType;
private ArrayList<KeyVal... |
package org.dodgybits.shuffle.web.client.model;
import java.io.Serializable;
public class LoginInfo implements Serializable {
private boolean loggedIn = false;
private String loginUrl;
private String logoutUrl;
private String emailAddress;
private String nickname;
public boolean isLoggedIn() {
retur... |
package org.dodgybits.shuffle.web.client.model;
import java.io.Serializable;
@SuppressWarnings("serial")
public class TaskOrdering implements Serializable {
}
|
package org.dodgybits.shuffle.web.client.model;
import java.io.Serializable;
@SuppressWarnings("serial")
public class KeyValue<T> implements Serializable {
private String mKey;
@SuppressWarnings("unused")
private KeyValue() {
// required for GWT serialization
}
public KeyValue(String key) {
mKey = key;
}... |
package org.dodgybits.shuffle.web.client.model;
public enum BooleanSelection {
IncludeIfTrue, IncludeIfFalse, IncludeAll
}
|
package org.dodgybits.shuffle.web.client.model;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
@SuppressWarnings("serial")
public class TaskValue implements Serializable {
private KeyValue<TaskValue> mKeyValue;
private String mTitle;
private String mDetails;
private KeyValue<Proje... |
package org.dodgybits.shuffle.web.client.model;
import java.io.Serializable;
@SuppressWarnings("serial")
public class ProjectValue implements Serializable {
private KeyValue<ProjectValue> mKeyValue;
private String mName;
private KeyValue<ContextValue> mDefaultContextId;
@SuppressWarnings("unused")
private Proj... |
package org.dodgybits.shuffle.web.client.model;
import java.io.Serializable;
@SuppressWarnings("serial")
public class TaskFilter implements Serializable {
public ValueSelection<ContextValue> contexts;
public ValueSelection<ProjectValue> projects;
public BooleanSelection isComplete;
public boolean only... |
package org.dodgybits.shuffle.web.client.gin;
import org.dodgybits.shuffle.web.client.Main;
import com.google.gwt.inject.client.Ginjector;
public interface ShuffleGinjector extends Ginjector {
Main getMain();
}
|
package org.dodgybits.shuffle.web.client.gin;
import org.dodgybits.shuffle.web.client.formatter.ActionDateFormatter;
import org.dodgybits.shuffle.web.client.model.LoginInfo;
import com.google.gwt.event.shared.HandlerManager;
import com.google.gwt.inject.client.AbstractGinModule;
import com.google.inject.Singleton;
p... |
package org.dodgybits.shuffle.web.client;
import com.google.gwt.i18n.client.Constants;
import com.google.gwt.i18n.client.LocalizableResource.DefaultLocale;
@DefaultLocale("en") // not required since this is the default
public interface ShuffleConstants extends Constants {
@DefaultStringValue("Sign In")
String... |
package org.dodgybits.shuffle.web.client.service;
import org.dodgybits.shuffle.web.client.model.LoginInfo;
import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;
@RemoteServiceRelativePath("login")
public interface LoginService extends RemoteService {
... |
package org.dodgybits.shuffle.web.client.service;
import java.util.ArrayList;
import org.dodgybits.shuffle.web.client.model.TaskFilter;
import org.dodgybits.shuffle.web.client.model.TaskOrdering;
import org.dodgybits.shuffle.web.client.model.TaskValue;
import com.google.gwt.user.client.rpc.RemoteService;
import com.... |
package org.dodgybits.shuffle.web.client.service;
import org.dodgybits.shuffle.web.client.model.LoginInfo;
import com.google.gwt.user.client.rpc.AsyncCallback;
public interface LoginServiceAsync {
public void login(String requestUri, AsyncCallback<LoginInfo> async);
}
|
package org.dodgybits.shuffle.web.client.service;
import java.io.Serializable;
public class NotLoggedInException extends Exception implements Serializable {
public NotLoggedInException() {
super();
}
public NotLoggedInException(String message) {
super(message);
}
}
|
package org.dodgybits.shuffle.web.client.service;
import java.util.ArrayList;
import org.dodgybits.shuffle.web.client.model.TaskFilter;
import org.dodgybits.shuffle.web.client.model.TaskOrdering;
import org.dodgybits.shuffle.web.client.model.TaskValue;
import com.google.gwt.user.client.rpc.AsyncCallback;
public int... |
package org.dodgybits.shuffle.web.client.service;
import com.google.gwt.user.client.Window;
import com.google.gwt.user.client.rpc.AsyncCallback;
public abstract class ErrorHandlingAsyncCallback<T>
implements AsyncCallback<T> {
@Override
public void onFailure(Throwable caught) {
Window.alert(caught.getMessage()... |
package org.dodgybits.shuffle.web.client.formatter;
import java.util.Date;
import org.dodgybits.shuffle.web.client.model.TaskValue;
import com.google.gwt.i18n.client.DateTimeFormat;
public class ActionDateFormatter {
private DateTimeFormat dateFormat;
public ActionDateFormatter() {
dateFormat = DateTimeForma... |
package org.dodgybits.shuffle.web.client;
import java.util.ArrayList;
import java.util.Date;
import org.dodgybits.shuffle.web.client.command.GetTasksCommand;
import org.dodgybits.shuffle.web.client.command.SaveTaskCommand;
import org.dodgybits.shuffle.web.client.formatter.ActionDateFormatter;
import org.dodgybits.shu... |
package org.dodgybits.shuffle.web.client.command;
import java.util.ArrayList;
import org.dodgybits.shuffle.web.client.model.TaskValue;
import org.dodgybits.shuffle.web.client.service.TaskServiceAsync;
import com.google.gwt.user.client.Command;
import com.google.gwt.user.client.rpc.AsyncCallback;
import com.google.in... |
package org.dodgybits.shuffle.web.client.command;
import org.dodgybits.shuffle.web.client.model.TaskValue;
import org.dodgybits.shuffle.web.client.service.TaskServiceAsync;
import com.google.gwt.user.client.Command;
import com.google.gwt.user.client.rpc.AsyncCallback;
import com.google.inject.Inject;
public class Sa... |
package org.dodgybits.shuffle.web.client;
import gwtupload.client.IUploader;
import gwtupload.client.SingleUploader;
import org.dodgybits.shuffle.web.client.gin.ShuffleGinjector;
import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.core.client.GWT;
import com.google.gwt.resources.client.ClientBundle;
... |
package org.dodgybits.shuffle.web.client;
import com.google.gwt.core.client.GWT;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.uibinder.client.UiField;
import com.google.gwt.user.client.ui.DockLayoutPanel;
import com.google.gwt.user.client.ui.ResizeComposite;
import com.google.inject.Inject;
p... |
package org.dodgybits.shuffle.web.client;
import com.google.gwt.core.client.GWT;
import com.google.gwt.event.dom.client.ClickEvent;
import com.google.gwt.resources.client.CssResource;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.uibinder.client.UiField;
import com.google.gwt.uibinder.client.Ui... |
/*
* 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... |
package org.dodgybits.shuffle.web.client;
import com.google.gwt.user.client.ui.ResizeComposite;
import com.google.inject.Inject;
public class CentrePanel extends ResizeComposite {
TaskList taskList;
@Inject
public CentrePanel(TaskList taskList) {
this.taskList = taskList;
initWidget(taskList);... |
package org.dodgybits.shuffle.web.server.model;
import static org.dodgybits.shuffle.web.server.persistence.JdoUtils.toKey;
import static org.dodgybits.shuffle.web.server.persistence.JdoUtils.toKeyValue;
import java.io.Serializable;
import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.Identi... |
package org.dodgybits.shuffle.web.server.model;
import static org.dodgybits.shuffle.web.server.persistence.JdoUtils.toKey;
import static org.dodgybits.shuffle.web.server.persistence.JdoUtils.toKeys;
import static org.dodgybits.shuffle.web.server.persistence.JdoUtils.toKeyValue;
import static org.dodgybits.shuffle.web.... |
package org.dodgybits.shuffle.web.server.model;
import static org.dodgybits.shuffle.web.server.persistence.JdoUtils.toKey;
import static org.dodgybits.shuffle.web.server.persistence.JdoUtils.toKeyValue;
import java.io.Serializable;
import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.Identi... |
package org.dodgybits.shuffle.web.server.persistence;
import java.util.ArrayList;
import java.util.List;
import javax.jdo.JDOHelper;
import javax.jdo.PersistenceManager;
import javax.jdo.PersistenceManagerFactory;
import org.dodgybits.shuffle.web.client.model.KeyValue;
import com.google.appengine.api.datastore.Key;... |
package org.dodgybits.shuffle.web.server.persistence;
import javax.servlet.*;
import java.io.IOException;
/**
* Ensures we properly release persistence resources even in
* the face of exceptions.
*/
public class PersistenceFilter implements javax.servlet.Filter {
public void destroy() {
}
publi... |
package org.dodgybits.shuffle.web.server.service;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.Random;
import javax.jdo.PersistenceManager;
import javax.jdo.Query;
import org.dodgybits.shuffle.web.client.model.TaskFilter;
import org.dodgybits.shuffle.web.client.model.Tas... |
package org.dodgybits.shuffle.web.server.service;
import gwtupload.server.UploadAction;
import gwtupload.server.exceptions.UploadActionException;
import java.util.List;
import java.util.logging.Logger;
import javax.servlet.http.HttpServletRequest;
import org.apache.commons.fileupload.FileItem;
import org.dodgybits.... |
package org.dodgybits.shuffle.web.server.service;
import org.dodgybits.shuffle.web.client.model.LoginInfo;
import org.dodgybits.shuffle.web.client.service.LoginService;
import com.google.appengine.api.users.User;
import com.google.appengine.api.users.UserService;
import com.google.appengine.api.users.UserServiceFacto... |
/*
* Copyright 2010 Sean M. Foy
*
* This file is part of WhereRing.
*
* WhereRing is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later v... |
/*
* Copyright 2010 Sean M. Foy
*
* This file is part of WhereRing.
*
* WhereRing is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later v... |
/*
* Copyright 2010 Sean M. Foy
*
* This file is part of WhereRing.
*
* WhereRing is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later v... |
/*
* Copyright 2010 Sean M. Foy
*
* This file is part of WhereRing.
*
* WhereRing is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later v... |
/*
* Copyright 2010 Sean M. Foy
*
* This file is part of WhereRing.
*
* WhereRing is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later v... |
/*
* Copyright 2010 Sean M. Foy
*
* This file is part of WhereRing.
*
* WhereRing is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later v... |
/*
* Copyright 2010 Sean M. Foy
*
* This file is part of WhereRing.
*
* WhereRing is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later v... |
/*
* Copyright 2010 Sean M. Foy
*
* This file is part of WhereRing.
*
* WhereRing is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later v... |
/*
* Copyright 2010 Sean M. Foy
*
* This file is part of WhereRing.
*
* WhereRing is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later v... |
/*
* Copyright 2010 Sean M. Foy
*
* This file is part of WhereRing.
*
* WhereRing is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later v... |
/*
* Copyright 2010 Sean M. Foy
*
* This file is part of WhereRing.
*
* WhereRing is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later v... |
/*
* Copyright 2010 Sean M. Foy
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* WhereRing is distrib... |
/*
* Copyright 2010 Sean M. Foy
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* WhereRing is distrib... |
package org.drl.xmpp.aty;
import org.drl.xmpp.R;
import android.app.Activity;
import android.os.Bundle;
import android.view.Menu;
public class HoneActivity extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout... |
/*
* Copyright (C) 2013 AndXmppSDK Project <hljdrl@gmail.com>
*
* 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 ... |
/*
* Copyright (C) 2013 AndXmppSDK Project <hljdrl@gmail.com>
*
* 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 ... |
/*
* Copyright (C) 2013 AndXmppSDK Project <hljdrl@gmail.com>
*
* 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 ... |
/*
* Copyright (C) 2013 AndXmppSDK Project <hljdrl@gmail.com>
*
* 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 ... |
/*
* Copyright (C) 2013 AndXmppSDK Project <hljdrl@gmail.com>
*
* 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 ... |
/*
* Copyright (C) 2013 AndXmppSDK Project <hljdrl@gmail.com>
*
* 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 ... |
/*
* Copyright (C) 2013 AndXmppSDK Project <hljdrl@gmail.com>
*
* 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 ... |
/*
* Copyright (C) 2013 AndXmppSDK Project <hljdrl@gmail.com>
*
* 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 ... |
/*
* Copyright (C) 2013 AndXmppSDK Project <hljdrl@gmail.com>
*
* 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 ... |
/*
* Copyright (C) 2013 AndXmppSDK Project <hljdrl@gmail.com>
*
* 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 ... |
/*
* Copyright (C) 2013 AndXmppSDK Project <hljdrl@gmail.com>
*
* 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 ... |
/*
* Copyright (C) 2013 AndXmppSDK Project <hljdrl@gmail.com>
*
* 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 ... |
/*
* Copyright (C) 2013 AndXmppSDK Project <hljdrl@gmail.com>
*
* 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 ... |
/*
* Copyright (C) 2013 AndXmppSDK Project <hljdrl@gmail.com>
*
* 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 ... |
/*
* Copyright (C) 2013 AndXmppSDK Project <hljdrl@gmail.com>
*
* 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 ... |
/*
* Copyright (C) 2013 AndXmppSDK Project <hljdrl@gmail.com>
*
* 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 ... |
/*
* Copyright (C) 2013 AndXmppSDK Project <hljdrl@gmail.com>
*
* 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 ... |
/*
* Copyright (C) 2013 AndXmppSDK Project <hljdrl@gmail.com>
*
* 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 ... |
/*
* Copyright (C) 2013 AndXmppSDK Project <hljdrl@gmail.com>
*
* 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 ... |
/*
* Copyright (C) 2013 AndXmppSDK Project <hljdrl@gmail.com>
*
* 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 ... |
/*
* Copyright (C) 2013 AndXmppSDK Project <hljdrl@gmail.com>
*
* 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 ... |
/*
* Copyright (C) 2013 AndXmppSDK Project <hljdrl@gmail.com>
*
* 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 ... |
/*
* Copyright (C) 2013 AndXmppSDK Project <hljdrl@gmail.com>
*
* 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 ... |
/*
* Copyright (C) 2013 AndXmppSDK Project <hljdrl@gmail.com>
*
* 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 ... |
/*
* Copyright (C) 2013 AndXmppSDK Project <hljdrl@gmail.com>
*
* 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 ... |
/*
* Copyright (C) 2013 AndXmppSDK Project <hljdrl@gmail.com>
*
* 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 ... |
/*
* Copyright (C) 2013 AndXmppSDK Project <hljdrl@gmail.com>
*
* 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 ... |
/*
* Copyright (C) 2013 AndXmppSDK Project <hljdrl@gmail.com>
*
* 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 ... |
/*
* Copyright (C) 2013 AndXmppSDK Project <hljdrl@gmail.com>
*
* 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 ... |
/*
* Copyright (C) 2013 AndXmppSDK Project <hljdrl@gmail.com>
*
* 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 ... |
/*
* Copyright (C) 2013 AndXmppSDK Project <hljdrl@gmail.com>
*
* 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 ... |
package org.drl.xmpp.storage;
import android.database.sqlite.SQLiteDatabase;
/**
* 数据库表-抽象类
*
* @author hljdrl@gmail.com
*
*/
public interface DatabaseTable {
/**
* Called on create database.
*
* @param db
*/
void create(SQLiteDatabase db);
/**
* Called on database migration.... |
/**
* Copyright (c) 2013, Redsolution LTD. All rights reserved.
*
* This file is part of Xabber project; you can redistribute it and/or
* modify it under the terms of the GNU General Public License, Version 3.
*
* Xabber is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without eve... |
/**
*
*/
package org.drl.xmpp.storage;
import java.io.File;
import java.util.ArrayList;
import java.util.LinkedList;
import java.util.List;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteException;
import android.database.sqlite.SQLiteOpenHelper;
/**
* 数据库管理类,负... |
package org.drl.xmpp.storage;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
/**
* 数据库表-抽象类
* @author hljdrl@gmail.com
*
*/
public abstract class AbstractTable implements DatabaseTable {
/**
* 返回数据库表名
* @return TableName数据库表名
*/
protected abstract String getTableName();
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.