project/com.nokia.carbide.cpp.epoc.engine.tests/data/pkg/example/ifelse.pkg
author fturovic <frank.turovich@nokia.com>
Mon, 06 Apr 2009 11:48:01 -0500
changeset 45 a34cdcced64e
parent 2 d760517a8095
permissions -rw-r--r--
updated sdk readme page
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2
cawthron
parents:
diff changeset
     1
;
cawthron
parents:
diff changeset
     2
; Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
cawthron
parents:
diff changeset
     3
; All rights reserved.
cawthron
parents:
diff changeset
     4
; This component and the accompanying materials are made available
cawthron
parents:
diff changeset
     5
; under the terms of the License "Eclipse Public License v1.0"
cawthron
parents:
diff changeset
     6
; which accompanies this distribution, and is available
cawthron
parents:
diff changeset
     7
; at the URL "http://www.eclipse.org/legal/epl-v10.html".
cawthron
parents:
diff changeset
     8
;
cawthron
parents:
diff changeset
     9
; Initial Contributors:
cawthron
parents:
diff changeset
    10
; Nokia Corporation - initial contribution.
cawthron
parents:
diff changeset
    11
;
cawthron
parents:
diff changeset
    12
; Contributors:
cawthron
parents:
diff changeset
    13
;
cawthron
parents:
diff changeset
    14
; Description: 
cawthron
parents:
diff changeset
    15
;
cawthron
parents:
diff changeset
    16
; Demonstrates IF and else statements
cawthron
parents:
diff changeset
    17
cawthron
parents:
diff changeset
    18
;Languages
cawthron
parents:
diff changeset
    19
&EN, FR
cawthron
parents:
diff changeset
    20
cawthron
parents:
diff changeset
    21
;Header
cawthron
parents:
diff changeset
    22
#{"TestIf-EN","TestIf-FR"}, (0x1000000F), 1, 2, 3
cawthron
parents:
diff changeset
    23
cawthron
parents:
diff changeset
    24
%{"Vendor", "Vendeur"}
cawthron
parents:
diff changeset
    25
:"Vendor"
cawthron
parents:
diff changeset
    26
cawthron
parents:
diff changeset
    27
; Big if
cawthron
parents:
diff changeset
    28
IF     (LANGUAGE=0) OR
cawthron
parents:
diff changeset
    29
    (MANUFACTURER=5) OR
cawthron
parents:
diff changeset
    30
    (MANUFACTURER<>5) OR
cawthron
parents:
diff changeset
    31
    (ManufacturerHardwareRev>0x100) OR
cawthron
parents:
diff changeset
    32
    (ManufacturerSoftwareRev>0x100) OR
cawthron
parents:
diff changeset
    33
    (ManufacturerSoftwareBuild>257) OR
cawthron
parents:
diff changeset
    34
    (Model=0) OR
cawthron
parents:
diff changeset
    35
    (MachineUid=0) OR
cawthron
parents:
diff changeset
    36
    (DeviceFamily=0) OR
cawthron
parents:
diff changeset
    37
    (DeviceFamilyRev>=6) OR
cawthron
parents:
diff changeset
    38
    (CPU=0) OR
cawthron
parents:
diff changeset
    39
    (CPUArch=0) OR
cawthron
parents:
diff changeset
    40
    (CPUABI=0) OR
cawthron
parents:
diff changeset
    41
    (CPUSpeed>=36) OR
cawthron
parents:
diff changeset
    42
    (SystemTickPeriod>1) OR
cawthron
parents:
diff changeset
    43
    (MemoryRAM>=0x800000) OR
cawthron
parents:
diff changeset
    44
    (MemoryROM>=0x800000) OR
cawthron
parents:
diff changeset
    45
    (MemoryPageSize=0x1000) OR
cawthron
parents:
diff changeset
    46
    (PowerBackup) OR
cawthron
parents:
diff changeset
    47
    (Keyboard) OR
cawthron
parents:
diff changeset
    48
    (KeyboardDeviceKeys=5) OR
cawthron
parents:
diff changeset
    49
    (KeyboardAppKeys=8) OR
cawthron
parents:
diff changeset
    50
    (KeyboardClick) OR
cawthron
parents:
diff changeset
    51
    (KeyboardClickVolumeMax=10) OR
cawthron
parents:
diff changeset
    52
    (DisplayXPixels>=640) OR
cawthron
parents:
diff changeset
    53
    (DisplayYPixels>=200) OR
cawthron
parents:
diff changeset
    54
    (DisplayXTwips=3200) OR
cawthron
parents:
diff changeset
    55
    (DisplayYTwips=1440) OR
cawthron
parents:
diff changeset
    56
    (DisplayColors>=256) OR
cawthron
parents:
diff changeset
    57
    (DisplayContrastMax=37) OR
cawthron
parents:
diff changeset
    58
    (Backlight) OR
cawthron
parents:
diff changeset
    59
    (Pen) OR
cawthron
parents:
diff changeset
    60
    (PenX>=695) OR
cawthron
parents:
diff changeset
    61
    (PenY>=280) OR
cawthron
parents:
diff changeset
    62
    (PenDisplayOn) OR
cawthron
parents:
diff changeset
    63
    (PenClick) OR
cawthron
parents:
diff changeset
    64
    (PenClickVolumeMax=1) OR
cawthron
parents:
diff changeset
    65
    (Mouse) OR
cawthron
parents:
diff changeset
    66
    (MouseX>=640) OR
cawthron
parents:
diff changeset
    67
    (MouseY>=200) OR
cawthron
parents:
diff changeset
    68
    (MouseButtons=2) OR
cawthron
parents:
diff changeset
    69
    (Mouse) OR
cawthron
parents:
diff changeset
    70
    (CaseSwitch) OR
cawthron
parents:
diff changeset
    71
    (LEDs=2) OR
cawthron
parents:
diff changeset
    72
    (Integratedphone) OR
cawthron
parents:
diff changeset
    73
    (NumHalAttributes>1)
cawthron
parents:
diff changeset
    74
    @"sub.sis",(0x10000002)
cawthron
parents:
diff changeset
    75
    "text\pass.txt"-"", FT, TC
cawthron
parents:
diff changeset
    76
ENDIF
cawthron
parents:
diff changeset
    77
cawthron
parents:
diff changeset
    78
;Ordinary file to fixed drive
cawthron
parents:
diff changeset
    79
IF MemoryRAM>0
cawthron
parents:
diff changeset
    80
    "text\pass.txt"-"", FT, TC
cawthron
parents:
diff changeset
    81
ELSEIF MemoryRAM=0
cawthron
parents:
diff changeset
    82
    "text\fail.txt"-"", FT, TC
cawthron
parents:
diff changeset
    83
ELSEIF EXISTS("c:\private\10000010\import\test.txt")
cawthron
parents:
diff changeset
    84
    {
cawthron
parents:
diff changeset
    85
    "text\englishfile.txt"
cawthron
parents:
diff changeset
    86
    "text\frenchfile.txt"
cawthron
parents:
diff changeset
    87
    }-"C:\private\10000010\import\lang.txt"
cawthron
parents:
diff changeset
    88
ELSE
cawthron
parents:
diff changeset
    89
    {
cawthron
parents:
diff changeset
    90
    "text\englishfile.txt"
cawthron
parents:
diff changeset
    91
    "text\frenchfile.txt"
cawthron
parents:
diff changeset
    92
    }-"C:\private\10000010\import\lang2.txt"
cawthron
parents:
diff changeset
    93
ENDIF
cawthron
parents:
diff changeset
    94