project/com.nokia.carbide.cpp.epoc.engine.tests/data/pkg/example/ifelse.pkg
changeset 0 fb279309251b
equal deleted inserted replaced
-1:000000000000 0:fb279309251b
       
     1 ;
       
     2 ; Copyright (c) 2009 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 the License "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: 
       
    15 ;
       
    16 ; Demonstrates IF and else statements
       
    17 
       
    18 ;Languages
       
    19 &EN, FR
       
    20 
       
    21 ;Header
       
    22 #{"TestIf-EN","TestIf-FR"}, (0x1000000F), 1, 2, 3
       
    23 
       
    24 %{"Vendor", "Vendeur"}
       
    25 :"Vendor"
       
    26 
       
    27 ; Big if
       
    28 IF     (LANGUAGE=0) OR
       
    29     (MANUFACTURER=5) OR
       
    30     (MANUFACTURER<>5) OR
       
    31     (ManufacturerHardwareRev>0x100) OR
       
    32     (ManufacturerSoftwareRev>0x100) OR
       
    33     (ManufacturerSoftwareBuild>257) OR
       
    34     (Model=0) OR
       
    35     (MachineUid=0) OR
       
    36     (DeviceFamily=0) OR
       
    37     (DeviceFamilyRev>=6) OR
       
    38     (CPU=0) OR
       
    39     (CPUArch=0) OR
       
    40     (CPUABI=0) OR
       
    41     (CPUSpeed>=36) OR
       
    42     (SystemTickPeriod>1) OR
       
    43     (MemoryRAM>=0x800000) OR
       
    44     (MemoryROM>=0x800000) OR
       
    45     (MemoryPageSize=0x1000) OR
       
    46     (PowerBackup) OR
       
    47     (Keyboard) OR
       
    48     (KeyboardDeviceKeys=5) OR
       
    49     (KeyboardAppKeys=8) OR
       
    50     (KeyboardClick) OR
       
    51     (KeyboardClickVolumeMax=10) OR
       
    52     (DisplayXPixels>=640) OR
       
    53     (DisplayYPixels>=200) OR
       
    54     (DisplayXTwips=3200) OR
       
    55     (DisplayYTwips=1440) OR
       
    56     (DisplayColors>=256) OR
       
    57     (DisplayContrastMax=37) OR
       
    58     (Backlight) OR
       
    59     (Pen) OR
       
    60     (PenX>=695) OR
       
    61     (PenY>=280) OR
       
    62     (PenDisplayOn) OR
       
    63     (PenClick) OR
       
    64     (PenClickVolumeMax=1) OR
       
    65     (Mouse) OR
       
    66     (MouseX>=640) OR
       
    67     (MouseY>=200) OR
       
    68     (MouseButtons=2) OR
       
    69     (Mouse) OR
       
    70     (CaseSwitch) OR
       
    71     (LEDs=2) OR
       
    72     (Integratedphone) OR
       
    73     (NumHalAttributes>1)
       
    74     @"sub.sis",(0x10000002)
       
    75     "text\pass.txt"-"", FT, TC
       
    76 ENDIF
       
    77 
       
    78 ;Ordinary file to fixed drive
       
    79 IF MemoryRAM>0
       
    80     "text\pass.txt"-"", FT, TC
       
    81 ELSEIF MemoryRAM=0
       
    82     "text\fail.txt"-"", FT, TC
       
    83 ELSEIF EXISTS("c:\private\10000010\import\test.txt")
       
    84     {
       
    85     "text\englishfile.txt"
       
    86     "text\frenchfile.txt"
       
    87     }-"C:\private\10000010\import\lang.txt"
       
    88 ELSE
       
    89     {
       
    90     "text\englishfile.txt"
       
    91     "text\frenchfile.txt"
       
    92     }-"C:\private\10000010\import\lang2.txt"
       
    93 ENDIF
       
    94