|
1 /* |
|
2 * Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: PIM item base implementation. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef PIMBASEREPEATRULE_H |
|
20 #define PIMBASEREPEATRULE_H |
|
21 |
|
22 #include <jni.h> |
|
23 #include "pimcommon.h" |
|
24 |
|
25 class pimbaserepeatrule |
|
26 { |
|
27 public: |
|
28 |
|
29 virtual pimbaserepeatrule::~pimbaserepeatrule() |
|
30 { |
|
31 }; |
|
32 |
|
33 virtual jintArray dates(jlong aStartDate, jlong aSubsetBeginning, |
|
34 jlong aSubsetEnding, JNIEnv* aJniEnv) = 0; |
|
35 |
|
36 virtual void addExceptDate(jlong aValue) = 0; |
|
37 |
|
38 virtual void removeExceptDate(jlong aValue) = 0; |
|
39 |
|
40 virtual jintArray getExceptDates(JNIEnv* aJniEnv) = 0; |
|
41 |
|
42 virtual int getRepeatInt(TPIMField aField) = 0; |
|
43 |
|
44 virtual void setRepeatInt(TPIMField aField, int aValue) = 0; |
|
45 |
|
46 virtual jlong getRepeatDate(TPIMField aField) = 0; |
|
47 |
|
48 virtual void setDate(TPIMField aField, jlong aValue) = 0; |
|
49 |
|
50 virtual jintArray getFields(JNIEnv* aJniEnv) = 0; |
|
51 |
|
52 virtual void clear() = 0; |
|
53 |
|
54 static pimbaserepeatrule* getInstance(); |
|
55 |
|
56 }; |
|
57 |
|
58 #endif // PIMBASEREPEATRULE_H |