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);
2334662f11b2ff38f05219415f3672a52a7af2338fTony Mantler    // Legacy compatability for Exchange shipped with KK
24f419287f22ae44f25e1ba1f757ec33c7941bbfa8Marc Blank    void setAccountPolicy(long accountId, in Policy policy, String securityKey);
2534662f11b2ff38f05219415f3672a52a7af2338fTony Mantler    // New version
2634662f11b2ff38f05219415f3672a52a7af2338fTony Mantler    void setAccountPolicy2(long accountId, in Policy policy, String securityKey, boolean notify);
279ba506c4dd498150555f6c59aa758f7467bf9236Marc Blank    oneway void remoteWipe();
289ba506c4dd498150555f6c59aa758f7467bf9236Marc Blank}