Android Open Source - savemypics C Plugin






From Project

Back to project page savemypics.

License

The source code is released under:

Copyright (c) 2014, KB Sriram All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. R...

If you think the Android project savemypics listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package org.savemypics.plugin;
//from   w w  w. j  av  a 2  s. c  om
import java.util.ArrayList;
import java.util.List;

public final class CPlugin
{
    @SuppressWarnings("serial")
    public final static class AuthorizationException
        extends Exception
    {
        public AuthorizationException(String msg)
        { super(msg); }

        public AuthorizationException(Throwable cause)
        { super(cause); }

        public AuthorizationException(String msg, Throwable cause)
        { super(msg, cause); }
    }

    @SuppressWarnings("serial")
    public final static class PermanentException
        extends Exception
    {
        public PermanentException(String msg)
        { super(msg); }

        public PermanentException(Throwable cause)
        { super(cause); }

        public PermanentException(String msg, Throwable cause)
        { super(msg, cause); }
    }

    public final static class RemoteImage
    {
        public RemoteImage(String id, String url, String title, long created)
        {
            m_id = id;
            m_url = url;
            m_title = title;
            m_created = created;
        }
        public String getId() { return m_id; }
        public String getURL() { return m_url; }
        public String getTitle() { return m_title; }
        public long getCreated() { return m_created; }
        private final String m_id;
        private final String m_url;
        private final String m_title;
        private final long m_created;
    }

    public final static class Feed
    {
        public Feed(String mark)
        {
            m_mark = mark;
            m_images = new ArrayList<RemoteImage>();
            m_nothingchanged = false;
        }

        public String getMark()
        { return m_mark; }
        public List<RemoteImage> getImages()
        { return m_images; }
        public boolean nothingChanged()
        { return m_nothingchanged; }

        public Feed setNothingChanged(boolean v)
        { m_nothingchanged = v; return this; }

        public Feed add(RemoteImage im)
        { m_images.add(im); return this; }

        private String m_mark;
        private boolean m_nothingchanged;
        private final List<RemoteImage> m_images;
    }

    public final static class Tokens
    {
        // Opaque strings - just stored within the Account
        // as "password" and "token".
        // Made available to the plugin for various calls.
        public Tokens(String permanent, String temporary)
        {
            m_permanent = permanent;
            m_temporary = temporary;
        }
        public final String getPermanent()
        { return m_permanent; }
        public final String getTemporary()
        { return m_temporary; }
        private final String m_permanent;
        private final String m_temporary;
    }

    public static class AlbumResult
    {
        public AlbumResult(String id, String title, long updated)
        {
            m_id = id;
            m_title = title;
            m_updated = updated;
        }
        public final String getId()
        { return m_id; }
        public final String getTitle()
        { return m_title; }
        public final long getUpdateTime()
        { return m_updated; }
        private final String m_id;
        private final String m_title;
        private final long m_updated;
    }

    public static class ImageResult
    {
        public ImageResult(String id, String title, long create)
        {
            m_id = id;
            m_title = title;
            m_create = create;
        }
        public final String getId()
        { return m_id; }
        public final String getTitle()
        { return m_title; }
        public final long getCreated()
        { return m_create; }
        private final String m_id;
        private final String m_title;
        private final long m_create;
    }
}




Java Source Code List

android.util.Base64.java
org.savemypics.android.activity.AActivity.java
org.savemypics.android.activity.ABaseSettingsActivity.java
org.savemypics.android.activity.CAccountInfoListAdapter.java
org.savemypics.android.activity.CFlickrSettingsActivity.java
org.savemypics.android.activity.CSnapfishSettingsActivity.java
org.savemypics.android.activity.CStartActivity.java
org.savemypics.android.authenticator.AAuthenticatorActivity.java
org.savemypics.android.authenticator.CAuthenticationService.java
org.savemypics.android.authenticator.CAuthenticator.java
org.savemypics.android.authenticator.CFlickrLoginHookActivity.java
org.savemypics.android.authenticator.CFlickrWebActivity.java
org.savemypics.android.authenticator.CSelectProviderActivity.java
org.savemypics.android.authenticator.CSnapfishLoginActivity.java
org.savemypics.android.db.CAccount.java
org.savemypics.android.db.CDb.java
org.savemypics.android.db.CLocalImage.java
org.savemypics.android.db.CMap.java
org.savemypics.android.db.CRemoteImage.java
org.savemypics.android.event.AEvent.java
org.savemypics.android.event.CEventBus.java
org.savemypics.android.event.CExceptionEvent.java
org.savemypics.android.glue.ABaseGlue.java
org.savemypics.android.glue.CFlickrGlue.java
org.savemypics.android.glue.CSnapfishGlue.java
org.savemypics.android.receiver.CNetworkChangeReceiver.java
org.savemypics.android.service.CTaskQueue.java
org.savemypics.android.sync.CMediaUtils.java
org.savemypics.android.sync.CSyncAdapter.java
org.savemypics.android.sync.CSyncService.java
org.savemypics.android.sync.CSyncUtils.java
org.savemypics.android.util.CBitmapUtils.java
org.savemypics.android.util.CFileCache.java
org.savemypics.android.util.CLruCache.java
org.savemypics.android.util.CUtils.java
org.savemypics.android.util.CUtils.java
org.savemypics.android.view.CMaximumWidthLayout.java
org.savemypics.android.view.CModularLayout.java
org.savemypics.android.view.CRefreshButton.java
org.savemypics.android.view.CRoundedBitmapView.java
org.savemypics.android.view.CStatusCounterView.java
org.savemypics.plugin.CIOUtils.java
org.savemypics.plugin.CPlugin.java
org.savemypics.plugin.flickr.CFlickrAlbum.java
org.savemypics.plugin.flickr.CFlickrUtils.java
org.savemypics.plugin.snapfish.CSnapfishAlbum.java
org.savemypics.plugin.snapfish.CSnapfishFeed.java
org.savemypics.plugin.snapfish.CSnapfishUser.java
org.savemypics.plugin.snapfish.CSnapfishUtils.java