javaextensions/pim/common/inc.s60/pimrepeatrule.h
branchRCL_3
changeset 14 04becd199f91
equal deleted inserted replaced
13:f5050f1da672 14:04becd199f91
       
     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:  RepeatRule types and constants
       
    15  *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef PIMREPEATRULE_H
       
    20 #define PIMREPEATRULE_H
       
    21 
       
    22 /** @file
       
    23  * This file contains the PIM API constants and definitions for RepeatRules.
       
    24  */
       
    25 
       
    26 /**
       
    27  *
       
    28  */
       
    29 enum TPIMRepeatRuleField
       
    30 {
       
    31     EPIMRepeatRuleDayInMonth = 1,
       
    32     /**< \e Integer [1,31]. */
       
    33 
       
    34     EPIMRepeatRuleDayInWeek = 2,
       
    35     /**< \e Integer from \ref TPIMRepeatRuleDayInWeek. */
       
    36 
       
    37     EPIMRepeatRuleDayInYear = 4,
       
    38     /**< \e Integer [1,366]. */
       
    39 
       
    40     EPIMRepeatRuleMonthInYear = 8,
       
    41     /**< \e Integer from \ref TPIMRepeatRuleMonthInYear. */
       
    42 
       
    43     EPIMRepeatRuleWeekInMonth = 16,
       
    44     /**< \e Integer from \ref TPIMRepeatRuleWeekInMonth. */
       
    45 
       
    46     EPIMRepeatRuleCount = 32,
       
    47     /**< \e Integer. */
       
    48 
       
    49     EPIMRepeatRuleEnd = 64,
       
    50     /**< \e Date. */
       
    51 
       
    52     EPIMRepeatRuleFrequency = 0,
       
    53     /**< \e Integer from \ref TPIMRepeatRuleFrequency. */
       
    54 
       
    55     EPIMRepeatRuleInterval = 128
       
    56     /**< \e Integer. */
       
    57 };
       
    58 
       
    59 /**
       
    60  * Day in week constants. The possible values of \ref EPIMRepeatRuleDayInWeek field.
       
    61  */
       
    62 enum TPIMRepeatRuleDayInWeek
       
    63 {
       
    64     EPIMRepeatRuleSunday = 65536,
       
    65     EPIMRepeatRuleMonday = 32768,
       
    66     EPIMRepeatRuleTuesday = 16384,
       
    67     EPIMRepeatRuleWednesday = 8192,
       
    68     EPIMRepeatRuleThursday = 4096,
       
    69     EPIMRepeatRuleFriday = 2048,
       
    70     EPIMRepeatRuleSaturday = 1024
       
    71 };
       
    72 
       
    73 /**
       
    74  * Month in year constants. The possible values of \ref EPIMRepeatRuleMonthInYear field.
       
    75  */
       
    76 enum TPIMRepeatRuleMonthInYear
       
    77 {
       
    78     EPIMRepeatRuleJanuary = 131072,
       
    79     EPIMRepeatRuleFebruary = 262144,
       
    80     EPIMRepeatRuleMarch = 524288,
       
    81     EPIMRepeatRuleApril = 1048576,
       
    82     EPIMRepeatRuleMay = 2097152,
       
    83     EPIMRepeatRuleJune = 4194304,
       
    84     EPIMRepeatRuleJuly = 8388608,
       
    85     EPIMRepeatRuleAugust = 16777216,
       
    86     EPIMRepeatRuleSeptember = 33554432,
       
    87     EPIMRepeatRuleOctober = 67108864,
       
    88     EPIMRepeatRuleNovember = 134217728,
       
    89     EPIMRepeatRuleDecember = 268435456
       
    90 };
       
    91 
       
    92 /**
       
    93  * Week in month constants. The possbile values of \ref EPIMRepeatRuleWeekInMonth.
       
    94  */
       
    95 enum TPIMRepeatRuleWeekInMonth
       
    96 {
       
    97     EPIMRepeatRuleFirst = 1,
       
    98     EPIMRepeatRuleSecond = 2,
       
    99     EPIMRepeatRuleThird = 4,
       
   100     EPIMRepeatRuleFourth = 8,
       
   101     EPIMRepeatRuleFifth = 16,
       
   102     EPIMRepeatRuleLast = 32,
       
   103     EPIMRepeatRuleSecondLast = 64,
       
   104     EPIMRepeatRuleThirdLast = 128,
       
   105     EPIMRepeatRuleFourthLast = 256,
       
   106     EPIMRepeatRuleFifthLast = 512
       
   107 };
       
   108 
       
   109 /**
       
   110  * Frequency constants. The possible values of \ref EPIMRepeatRuleFrequency.
       
   111  */
       
   112 enum TPIMRepeatRuleFrequency
       
   113 {
       
   114     EPIMRepeatRuleDaily = 16,
       
   115     EPIMRepeatRuleWeekly = 17,
       
   116     EPIMRepeatRuleMonthly = 18,
       
   117     EPIMRepeatRuleYearly = 19
       
   118 };
       
   119 
       
   120 #endif // PIMREPEATRULE_H
       
   121 // End of File