package se.z_app.zmote.gui;

import se.z_app.stb.Channel;
import se.z_app.stb.EPG;
import se.z_app.stb.Program;
import se.z_app.zmote.epg.EPGQuery;
import android.os.Bundle;
import android.app.Activity;
import android.view.Menu;

public class EPGActivity extends Activity {

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_epg);
        
        
        
     /*   EPGQuery q = new EPGQuery();
        EPG epg = q.getEPG();
        
        for (Channel channel : epg) {
        	channel.getIcon()
        	
			for (Program program : channel) {
			program.ge	
			}
		}*/
    }

    
    
    
    @Override
    public boolean onCreateOptionsMenu(Menu menu) {
        getMenuInflater().inflate(R.menu.activity_epg, menu);
        return true;
    }
}

@@ -267,16 +267,89 @@
 ivity %7B%0A
+%09private EPGQuery q = new EPGQuery();%0A    private EPG epg = q.getEPG();%0A%09
 %0A    @Ov
@@ -500,32 +500,42 @@
 y_epg);%0A        
+mainEPG();
 %0A        %0A      
@@ -545,159 +545,272 @@
     
- /*   EPGQuery q = new EPGQuery();%0A        EPG epg = q.getEPG();%0A        %0A        for (Channel channel : epg) %7B%0A        %09channel.getIcon()%0A        %09%0A%09%09
+%0A    %7D%0A%0A    %0A    %0A    %0A    @Override%0A    public boolean onCreateOptionsMenu(Menu menu) %7B%0A        getMenuInflater().inflate(R.menu.activity_epg, menu);%0A        return true;%0A    %7D%0A%0A%0Avoid mainEPG()%7B%0A%09%0A%09for (Channel channel : epg) %7B%0A    %09addIconToLayout(channel);%0A    
 %09for
@@ -847,26 +847,45 @@
 %0A%09%09%09
+addProgramsToLayout(
 program
-.ge
+);
 %09%0A%09%09%09%7D%0A%09
 %09%7D*/
@@ -884,188 +884,109 @@
 %09%7D%0A%09
-%09%7D*/%0A    %7D%0A%0A    %0A    %0A    %0A    @Override%0A    public boolean onCreateOptionsMenu(Menu menu) %7B%0A        getMenuInflater().inflate(R.menu.activity_epg, menu);%0A        return true;%0A    %7D%0A%7D%0A
+%0A     %7D%09%0A%7D%0A%0Avoid addIconToLayout(Channel ch)%7B%0A%09%0A%09%0A%09%0A%7D%0A%0Avoid addProgramsToLayout(Program pg)%7B%0A%0A%0A%0A%7D%0A%0A%0A%0A%0A%0A%0A%7D

Structure EPGActivity