CacheListMenuActions.java :  » Geo » geobeagle » com » google » code » geobeagle » activity » cachelist » Android Open Source

Android Open Source » Geo » geobeagle 
geobeagle » com » google » code » geobeagle » activity » cachelist » CacheListMenuActions.java
/*
 ** 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 com.google.code.geobeagle.activity.cachelist;

import com.google.code.geobeagle.R;
import com.google.code.geobeagle.actions.MenuActionBase;
import com.google.code.geobeagle.actions.MenuActionMap;
import com.google.code.geobeagle.actions.MenuActionSearchOnline;
import com.google.code.geobeagle.actions.MenuActionSettings;
import com.google.code.geobeagle.actions.MenuActions;
import com.google.code.geobeagle.activity.cachelist.actions.menu.MenuActionDeleteAllCaches;
import com.google.code.geobeagle.activity.cachelist.actions.menu.MenuActionMyLocation;
import com.google.code.geobeagle.activity.cachelist.actions.menu.MenuActionSyncGpx;
import com.google.inject.Inject;
import com.google.inject.Injector;

import android.content.res.Resources;

public class CacheListMenuActions extends MenuActions {
    @Inject
    public CacheListMenuActions(Injector injector, Resources resources) {
        super(resources);
        add(new MenuActionBase(R.string.menu_sync, injector.getInstance(MenuActionSyncGpx.class)));
        add(new MenuActionBase(R.string.menu_delete_all_caches,
                injector.getInstance(MenuActionDeleteAllCaches.class)));
        add(new MenuActionBase(R.string.menu_add_my_location,
                injector.getInstance(MenuActionMyLocation.class)));
        add(new MenuActionBase(R.string.menu_search_online,
                injector.getInstance(MenuActionSearchOnline.class)));
        add(new MenuActionBase(R.string.menu_map, injector.getInstance(MenuActionMap.class)));
        add(new MenuActionBase(R.string.menu_settings,
                injector.getInstance(MenuActionSettings.class)));
    }
}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.