19ba506c4dd498150555f6c59aa758f7467bf9236Marc Blank/*
29ba506c4dd498150555f6c59aa758f7467bf9236Marc Blank * Copyright (C) 2011 The Android Open Source Project
39ba506c4dd498150555f6c59aa758f7467bf9236Marc Blank *
49ba506c4dd498150555f6c59aa758f7467bf9236Marc Blank * Licensed under the Apache License, Version 2.0 (the "License");
59ba506c4dd498150555f6c59aa758f7467bf9236Marc Blank * you may not use this file except in compliance with the License.
69ba506c4dd498150555f6c59aa758f7467bf9236Marc Blank * You may obtain a copy of the License at
79ba506c4dd498150555f6c59aa758f7467bf9236Marc Blank *
89ba506c4dd498150555f6c59aa758f7467bf9236Marc Blank *      http://www.apache.org/licenses/LICENSE-2.0
99ba506c4dd498150555f6c59aa758f7467bf9236Marc Blank *
109ba506c4dd498150555f6c59aa758f7467bf9236Marc Blank * Unless required by applicable law or agreed to in writing, software
119ba506c4dd498150555f6c59aa758f7467bf9236Marc Blank * distributed under the License is distributed on an "AS IS" BASIS,
129ba506c4dd498150555f6c59aa758f7467bf9236Marc Blank * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
139ba506c4dd498150555f6c59aa758f7467bf9236Marc Blank * See the License for the specific language governing permissions and
149ba506c4dd498150555f6c59aa758f7467bf9236Marc Blank * limitations under the License.
159ba506c4dd498150555f6c59aa758f7467bf9236Marc Blank */
169ba506c4dd498150555f6c59aa758f7467bf9236Marc Blankpackage com.android.emailcommon.service;
179ba506c4dd498150555f6c59aa758f7467bf9236Marc Blank
18aeee10e57ef4d931e7708fde218d590453a82aeaMarc Blankimport com.android.emailcommon.provider.Policy;
199ba506c4dd498150555f6c59aa758f7467bf9236Marc Blank
209ba506c4dd498150555f6c59aa758f7467bf9236Marc Blankinterface IPolicyService {
21aeee10e57ef4d931e7708fde218d590453a82aeaMarc Blank    boolean isActive(in Policy policies);
229ba506c4dd498150555f6c59aa758f7467bf9236Marc Blank    void setAccountHoldFlag(long accountId, boolean newState);
23cc0185f07c9198008d8dc685ae9979f3e35e8539Marc Blank    void setAccountPolicy(long accountId, in Policy policy, String securityKey);
249ba506c4dd498150555f6c59aa758f7467bf9236Marc Blank    oneway void remoteWipe();
259ba506c4dd498150555f6c59aa758f7467bf9236Marc Blank}